Skip to main content

Add gzip compression to Datasette

Project description

datasette-gzip

PyPI Changelog Tests License

Add gzip compression to Datasette

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-gzip

Usage

Once installed, Datasette will obey the Accept-Encoding: header sent by browsers or other user agents and return content compressed in the most appropriate way.

This plugin is a thin wrapper for the asgi-gzip library, which extracts the GzipMiddleware from Starlette.

Development

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

cd datasette-gzip
python3 -mvenv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datasette_gzip-0.3.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datasette_gzip-0.3-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file datasette_gzip-0.3.tar.gz.

File metadata

  • Download URL: datasette_gzip-0.3.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for datasette_gzip-0.3.tar.gz
Algorithm Hash digest
SHA256 9458742239f09f7f3cfe6dde90f78ec4612be978c2277b37577166c9d68c6fe6
MD5 ab1e0eade8395f354667cbbee6ab4b22
BLAKE2b-256 bba0fec574e7b4bcb175315700789ea8952e99b2188426ec0b32888da96e338b

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_gzip-0.3.tar.gz:

Publisher: publish.yml on simonw/datasette-gzip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file datasette_gzip-0.3-py3-none-any.whl.

File metadata

  • Download URL: datasette_gzip-0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for datasette_gzip-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 12e09813d3bcf61185a1809f65492a383b772d48b7bef5b8d1fae2e4f33fd3e1
MD5 0f7c036653e6a5485f5a82e4550b6256
BLAKE2b-256 afddc598e0e9df106d75d95fbb4018022dce56fe53a0a638c8003cd880002739

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_gzip-0.3-py3-none-any.whl:

Publisher: publish.yml on simonw/datasette-gzip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page