Skip to main content

datasette-proxy-url

PyPI Changelog Tests License

Proxy a URL through a Datasette instance

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-proxy-url

Usage

This plugin can be configured to set specific paths within Datasette to proxy content from another URL.

Configure the plugin like this:

{
    "plugins": {
        "datasette-proxy-url": {
            "paths": [
                {"path": "/proxy", "backend": "http://example.com/"},
            ]
        }
    }
}

Now any request to /proxy will serve the HTML content from http://example.com/.

The content-type response header and the content body will be passed through. All other headers are currently ignored.

Development

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

cd datasette-proxy-url
python3 -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

Metadata

Release files for datasette-proxy-url 0.1.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-proxy-url 0.1.1
File Size Uploaded Provenance Actions
datasette-proxy-url-0.1.1.tar.gz 6.7 kB Without provenance Details for datasette-proxy-url-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datasette-proxy-url 0.1.1
File Interpreter ABI Platform Actions
datasette_proxy_url-0.1.1-py3-none-any.whl Python 3 none any Details for datasette_proxy_url-0.1.1-py3-none-any.whl

Total release size: 13.6 kB

Release files / datasette-proxy-url-0.1.1.tar.gz

Download URL datasette-proxy-url-0.1.1.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
017ef6425282562cef4db154e8e8d0c7db1ae030fbc1b40e04884c2d29de33d0
BLAKE2b-256 checksum
How to use checksums
3d2e6efa198f7cdab54d4ecefb49f3eac6d478d491d0027f245757282d21a177
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / datasette_proxy_url-0.1.1-py3-none-any.whl

Download URL datasette_proxy_url-0.1.1-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cecc4091538975a25d634cb7efc47cd7125f2547d23ec85339aa2eac596ea706
BLAKE2b-256 checksum
How to use checksums
9ab0ecbf45279a5649f51bf41bc8b52463f492b4e822c36cab8097883ae21d0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.7

Security for datasette-proxy-url 0.1.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.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