python-snappy
Python library for the snappy compression library from Google
What it is and what it does
python-snappy wraps Google's Snappy compression library for Python, delegating compression and decompression operations to cramjam. It exposes both a Python API for in-process compression and a command-line interface for file and stream compression. The package is designed for scenarios where fast, moderate-ratio compression is preferred over maximum compression ratios.
The library supports Python 3.8, 3.9, 3.10, 3.11, and 3.12 on POSIX and macOS systems. It is classified as Beta and has been in development since 2011-03-29, with a permissive BSD license. Installation is straightforward via pip with low friction, though the project has entered a dormant maintenance phase with no releases for 715 days.
Use it for:
- Compress and decompress data streams in applications requiring fast compression over maximum ratio.
- Command-line compression of files using `python -m snappy` for quick ad-hoc compression tasks.
- Integration into data pipelines or storage systems where Snappy format compatibility is needed.
- Batch processing of large datasets where compression speed is a bottleneck.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python binding for Google's Snappy compression library, providing fast compression and decompression of data via the cramjam backend.
Yes, with conditions. The package is stable, permissively licensed, and has low install friction. However, dormant maintenance (715 days since last release) means security or compatibility issues may not be addressed quickly. Install if you need Snappy compression and can accept that bug fixes or Python version support updates may lag; avoid if you require active upstream support.
Install
python-snappy on PyPI
pip
pip install python-snappyuv
uv add python-snappypoetry
poetry add python-snappyInstalling python-snappy
Before you install
Low install friction with a pure wheel distribution. Maintenance is dormant—last release was 715 days ago, though the repository remains active with a recent commit on 2024-10-16 and moderate community interest (490 stars).
License in practice
BSD license (permissive) means you can use, modify, and distribute this package with minimal restrictions, provided you include the license notice.
Quickstart
pip install python-snappy
import snappy
compressed = snappy.compress(b'data')
original = snappy.decompress(compressed)
Requires Python >=3.8; cramjam is the sole runtime dependency.
Verify before relying
- Whether dormant maintenance status indicates abandonment risk or stable maturity.
- Performance characteristics compared to other Python compression libraries.
- Actual compatibility with Python 3.12 in production use beyond classifier declarations.
Package facts
| License | BSD (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — cramjam |
| Maintenance | dormant — 715 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 15,632,404/month — #1,177 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: python_snappy-0.7.3-py3-none-any.whl
Keywords: snappy, compression, google
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
cramjamProvides fast Python bindings to multiple…
permissive · top 1,000 on PyPI
apple-compressPython bindings for Apple's libcompression…
unclear · top 15,000 on PyPI
lzfsePython bindings for the LZFSE reference…
permissive · top 5,000 on PyPI
python-neo-lzfProvides fast compression and decompression of…
permissive · top 15,000 on PyPI
python-lzfProvides Python bindings to the liblzf…
permissive · top 15,000 on PyPI
lzallrightlzallright provides Python bindings to compress…
permissive · top 15,000 on PyPI
bloscPython wrapper for the Blosc compression…
permissive · top 15,000 on PyPI
zopfliZopfli is a Python binding for Google's Zopfli…
permissive · top 1,000 on PyPI
turbojpegPython bindings for libjpeg-turbo that provide…
unclear · top 15,000 on PyPI
pgzippgzip is a multi-threaded gzip implementation…
permissive · top 15,000 on PyPI