Skip to main content

datasette-redirect-forbidden

PyPI Changelog Tests License

Redirect forbidden requests to a login page

Installation

Install this plugin in the same environment as Datasette.

$ datasette install datasette-redirect-forbidden

Usage

Add the following to your metadata.yml (or metadata.json) file to configure the plugin:

plugins:
  datasette-redirect-forbidden:
    redirect_to: /-/login

Any 403 forbidden pages will redirect to the specified page.

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd datasette-redirect-forbidden
python3 -mvenv venv
source venv/bin/activate

Or if you are using pipenv:

pipenv shell

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

Metadata

Release files for datasette-redirect-forbidden 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-redirect-forbidden 0.1
File Size Uploaded Provenance Actions
datasette-redirect-forbidden-0.1.tar.gz 6.2 kB Without provenance Details for datasette-redirect-forbidden-0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datasette-redirect-forbidden 0.1
File Interpreter ABI Platform Actions
datasette_redirect_forbidden-0.1-py3-none-any.whl Python 3 none any Details for datasette_redirect_forbidden-0.1-py3-none-any.whl

Total release size: 13.0 kB

Release files / datasette-redirect-forbidden-0.1.tar.gz

Download URL datasette-redirect-forbidden-0.1.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b981018e27dd227554d55b664559249667243dc20b0d596be1a02c748f1cf144
BLAKE2b-256 checksum
How to use checksums
22f16e757423da2563206abd6445a5bc8b6ab38edd7dbf7b1500380175eda3fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

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

Download URL datasette_redirect_forbidden-0.1-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c3579e76c94fdf9b39c57ac62e314081f6d6f69a7beae38c7cbb37934f6bfc7
BLAKE2b-256 checksum
How to use checksums
cf22a437fc6fb97a39056ededbfaf02c17d3fd5e8c33fb4546bc03344b2567c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Security for datasette-redirect-forbidden 0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

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