Add gzip compression to Datasette
Project description
datasette-gzip
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9458742239f09f7f3cfe6dde90f78ec4612be978c2277b37577166c9d68c6fe6
|
|
| MD5 |
ab1e0eade8395f354667cbbee6ab4b22
|
|
| BLAKE2b-256 |
bba0fec574e7b4bcb175315700789ea8952e99b2188426ec0b32888da96e338b
|
Provenance
The following attestation bundles were made for datasette_gzip-0.3.tar.gz:
Publisher:
publish.yml on simonw/datasette-gzip
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datasette_gzip-0.3.tar.gz -
Subject digest:
9458742239f09f7f3cfe6dde90f78ec4612be978c2277b37577166c9d68c6fe6 - Sigstore transparency entry: 1260387488
- Sigstore integration time:
-
Permalink:
simonw/datasette-gzip@7a7e9e434c192e54ca990785ab6bd42f72da90ed -
Branch / Tag:
refs/tags/0.3 - Owner: https://github.com/simonw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7a7e9e434c192e54ca990785ab6bd42f72da90ed -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12e09813d3bcf61185a1809f65492a383b772d48b7bef5b8d1fae2e4f33fd3e1
|
|
| MD5 |
0f7c036653e6a5485f5a82e4550b6256
|
|
| BLAKE2b-256 |
afddc598e0e9df106d75d95fbb4018022dce56fe53a0a638c8003cd880002739
|
Provenance
The following attestation bundles were made for datasette_gzip-0.3-py3-none-any.whl:
Publisher:
publish.yml on simonw/datasette-gzip
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datasette_gzip-0.3-py3-none-any.whl -
Subject digest:
12e09813d3bcf61185a1809f65492a383b772d48b7bef5b8d1fae2e4f33fd3e1 - Sigstore transparency entry: 1260387604
- Sigstore integration time:
-
Permalink:
simonw/datasette-gzip@7a7e9e434c192e54ca990785ab6bd42f72da90ed -
Branch / Tag:
refs/tags/0.3 - Owner: https://github.com/simonw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7a7e9e434c192e54ca990785ab6bd42f72da90ed -
Trigger Event:
release
-
Statement type: