python-snappy
Pure Python Snappy compression and decompression library.
Features
- Pure Python implementation - no C dependencies required
- Full compression and decompression support
- Supports all Snappy element types: literals and copy operations
- Handles 1-byte, 2-byte, and 4-byte offset copies
Installation
uv add python-snappy-pure
Or with pip:
pip install python-snappy-pure
Usage
from python_snappy import compress, decompress
# Compress data
data = b"Hello, World!" * 100
compressed = compress(data)
# Decompress data
decompressed = decompress(compressed)
assert decompressed == data
Limitations
- Performance is slower than C-based implementations
For production use with large data, consider using the python-snappy package from PyPI which wraps the C library.
Development
uv sync --extra test
uv run pytest
License
MIT
Metadata
Release files for python-snappy-pure 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| python_snappy_pure-0.2.0.tar.gz | 25.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_snappy_pure-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.3 kB
Release files / python_snappy_pure-0.2.0.tar.gz
| Download URL | python_snappy_pure-0.2.0.tar.gz |
|---|---|
| Size | 25.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f14a66ea83b5db2fcabdfab7e2a5b22d700e78232e72589b92521f8255f0659c
|
|
BLAKE2b-256 checksum How to use checksums |
427153adad322c3e66b3f6811964b4b85e938288015032fbf7b5699a92064cd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / python_snappy_pure-0.2.0-py3-none-any.whl
| Download URL | python_snappy_pure-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2fac98f2af5371b211a50f26537d3ba6d5503d58883d6a684b6f5cd34314ea44
|
|
BLAKE2b-256 checksum How to use checksums |
e17760ac75312ba065f783ef3990bc49dc016b4dc0c7af70383a7ca107b00e87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for python-snappy-pure 0.2.0
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.