--- id: cramjam version: "2.11.0" license: MIT license_treatment: permissive maintenance: active --- # cramjam — Thin Python bindings to de/compression algorithms in Rust License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install cramjam uv add cramjam poetry add cramjam ## Description # cramjam [![Code Style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black) [![CI](https://github.com/milesgranger/cramjam/actions/workflows/CI.yml/badge.svg)](https://github.com/milesgranger/cramjam/actions/workflows/CI.yml) [![PyPI](https://img.shields.io/pypi/v/cramjam.svg)](https://pypi.org/project/cramjam) [![Anaconda-Server Badge](https://anaconda.org/conda-forge/cramjam/badges/version.svg)](https://anaconda.org/conda-forge/cramjam) [![Downloads](https://pepy.tech/badge/cramjam/month)](https://pepy.tech/project/cramjam) [![NPM Version](https://img.shields.io/npm/v/cramjam)](https://www.npmjs.com/package/cramjam) [API Documentation](https://milesgranger.github.io/cramjam/cramjam.html) ### Install (Python) ```commandline pip install --upgrade cramjam # Requires no Python or system dependencies! ``` ### Install (JavaScript / TypeScript) ```commandline npm install cramjam ``` ### CLI A CLI interface is available as [`cramjam-cli`](https://github.com/cramjam/cramjam-cli) ### libcramjam A Rust crate and C friendly library available at [libcramjam](https://github.com/cramjam/libcramjam) --- Extremely thin and... ## AI interpretation — verify before relying Provides fast Python bindings to multiple compression algorithms (Snappy, Brotli, Bzip2, Lz4, Gzip, Zlib, Deflate, ZSTD, XZ) implemented in Rust, with no system or Python dependencies required. Verdict: A well-maintained, dependency-free compression library offering nine algorithms through a simple API. MIT-licensed and actively developed with no known vulnerabilities. Medium install friction stems from platform-specific wheels rather than build complexity. Suitable for production use when compression performance and algorithm variety are priorities. [View on SkillFed](https://skillfed.io/packages/cramjam) · [View on PyPI](https://pypi.org/project/cramjam/)