Skip to main content

datasette-redirects

PyPI Changelog Tests License

Configure redirects for a Datasette instance

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-redirects

Usage

Configure redirects in your datasette.yaml configuration file. Redirects are organized by HTTP status code:

plugins:
  datasette-redirects:
    301:
      old-page: https://example.com/new-page
      another-old-page: /new-location
    302:
      temporary-page: /temporary-location

This configuration will:

  • Redirect /old-page to https://example.com/new-page with a 301 (permanent) status
  • Redirect /another-old-page to /new-location with a 301 status
  • Redirect /temporary-page to /temporary-location with a 302 (temporary) status

Both /path and /path/ variants are matched automatically - you don't need to configure both.

Development

To set up this plugin locally, first checkout the code. You can confirm it is available like this:

cd datasette-redirects
# Confirm the plugin is visible
uv run datasette plugins

To run the tests:

uv run pytest

Metadata

Release files for datasette-redirects 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datasette-redirects 0.1
File Size Uploaded
datasette_redirects-0.1.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for datasette-redirects 0.1
File Interpreter ABI Platform
datasette_redirects-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.1 kB

Release files / datasette_redirects-0.1.tar.gz

Download URL datasette_redirects-0.1.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
738b95de3cfec86859e0232e0878909587945b305753d6befc0745b36d2a8045
BLAKE2b-256 checksum
How to use checksums
c855edc33646fe06bc57bc07773125bf3024a3801b7214cff57073e85312f6a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2025.

Transparency log

Release files / datasette_redirects-0.1-py3-none-any.whl

Download URL datasette_redirects-0.1-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c493ebe2ba27d294f3e1100b103f4213abebc2d9f2650444db964353a149772c
BLAKE2b-256 checksum
How to use checksums
a0d0963cb4683f3657964471f6e1a81b22621199a374493e711902c357f7d0e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page