Actively maintained. Last release 7 weeks ago, commits in 9 of the last 26 weeks. A safe choice.
pip install cramjamcramjam
Install (Python)
pip install --upgrade cramjam # Requires no Python or system dependencies!
Pure-Rust backend
By default zstd, lz4, bzip2, xz and deflate/gzip/zlib use their C libraries.
To use libcramjam's pure-Rust
implementations instead (same API, no C), install the add-on and select it
before cramjam is imported:
pip install --upgrade "cramjam[pure-rust]"
export CRAMJAM_BACKEND=pure-rust # `cramjam.backend` reports which is active
Output is interchangeable between backends, but the compressed bytes may differ.
Development
Install the locked development dependencies, build the extension, and run the test suite:
make dev-setup
make test
Rust checks can be run separately with cargo test.
Install (JavaScript / TypeScript)
npm install cramjam
CLI
A CLI interface is available as cramjam-cli
libcramjam
A Rust crate and C friendly library available at libcramjam
Extremely thin and easy-to-install Python bindings to de/compression algorithms in Rust. Allows for using algorithms such as Snappy, without any system or other python dependencies.