$npx skillfedfor your agent

Compression packages

34 packages

Packages

brotli Worth it
PyPI · Compression · released Nov 2025

Provides Python bindings to the Brotli compression library, enabling lossless compression and decompression using a modern LZ77 variant with Huffman coding and context modeling.

Install it if you need Brotli compression in Python; the API is straightforward and the library is battle-tested.

permissive licensecompiled wheel
94.7Mdownloads / mo
backports.zstd With conditions
PyPI · Compression · released Jun 2026

Provides Zstandard compression support for Python versions before 3.14, backporting the standard library's zstd module along with zstd-enabled tarfile and zipfile modules.

PSF-2.0compiled wheel
77.8Mdownloads / mo
zopfli With conditions
PyPI · Compression · released Jun 2026

Zopfli is a Python binding for Google's Zopfli compression library, providing higher-density compression for zlib and gzip formats than standard algorithms, with tunable iteration and block-splitting parameters.

Apache-2.0compiled wheel · 3.10+
36.4Mdownloads / mo
python-snappy With conditions
PyPI · Compression · released Aug 2024

Python binding for Google's Snappy compression library, providing fast compression and decompression of data via the cramjam backend.

However, dormant maintenance (715 days since last release) means security or compatibility issues may not be addressed quickly.

BSD-3-Clausepure Pythondormant
15.6Mdownloads / mo
pyzipper Worth it
PyPI · Compression · released May 2026

pyzipper replaces Python's standard zipfile module to read and write AES-encrypted zip archives, using the WinZip AES encryption specification.

MITpure Python · 3.4+
9.3Mdownloads / mo
pyzstd Skip
PyPI · Compression · released Dec 2025

Provides Python bindings to the Zstandard (zstd) compression library with an API similar to bz2, lzma, and zlib modules.

BSD-3-Clausepure Python · 3.10+
8.5Mdownloads / mo
compressed-rtf With conditions
PyPI · Compression · released Mar 2025

Compresses and decompresses Rich Text Format (RTF) data using the LZFu compression algorithm, implementing the Microsoft RTF Compression format.

However, maintenance is aging with no recent updates; verify that it meets your RTF variant requirements before relying on it for new projects.

MITpure Pythonaging
6.7Mdownloads / mo
rarfile Worth it
PyPI · Compression · released Aug 2026

Reads RAR archive files (RAR3 and RAR5 formats) in pure Python, with support for multi-volume archives, password protection, and Unicode filenames, delegating decompression to external tools like unrar or 7zip.

ISCpure Python · 3.10+
6.0Mdownloads / mo
netCDF4 With conditions
PyPI · Compression · released Jan 2026

netcdf4 provides a Python interface to read, write, and manipulate netCDF version 4 files through bindings to the netCDF C library.

MITcompiled wheel · 3.10+
4.7Mdownloads / mo
isal With conditions
PyPI · Compression · released Sep 2025

Provides Python bindings for Intel's ISA-L library to accelerate zlib and gzip compression and decompression with drop-in replacement modules.

PSF-2.0compiled wheel · 3.9+
2.8Mdownloads / mo
zlib-ng With conditions
PyPI · Compression · released Sep 2025

Provides faster zlib and gzip compression and decompression by wrapping the zlib-ng library with Python bindings that serve as drop-in replacements for the standard library modules.

Install only if your workload is actually bottlenecked on compression—the standard library zlib is sufficient for most use cases.

PSF-2.0compiled wheel · 3.9+
1.8Mdownloads / mo
zipfile36 Skip
PyPI · Compression · released Oct 2016

Provides a backport of Python 3.6's zipfile module for use on earlier Python versions, enabling access to improvements made in that release.

permissive licensepure Pythonabandoned
1.4Mdownloads / mo
zipfile-zstd With conditions
PyPI · Compression · released Dec 2021

Extends Python's standard zipfile module to read and write ZIP archives using Zstandard compression, via a monkey patch that registers the algorithm as a supported compression method.

However, do not rely on it for active development or expect updates if Python's zipfile module changes significantly; it is best suited for stable, self-contained use…

MITpure Python · 3.6+dormant
1.4Mdownloads / mo
patool With conditions
PyPI · Compression · released May 2026

Patool is a command-line archive manager that can create, extract, test, list, search, repack, and compare archives in many formats with a unified interface.

GPL-3.0-onlypure Python · 3.11+
1.4Mdownloads / mo
zipfile-deflate64 With conditions
PyPI · Compression · released Jan 2022

Enables extraction of Deflate64-compressed ZIP archives using Python's standard zipfile API, patching the module to support a compression format that standard zipfile cannot handle.

However, note that it is dormant (last release January 2022) and may not receive updates for future Python versions; verify compatibility with your target Python…

Apache-2.0compiled wheel · 3.6+dormant
1.1Mdownloads / mo
stream-inflate With conditions
PyPI · Compression · released Mar 2026

Decompresses DEFLATE and DEFLATE64 streams in pure Python, designed to handle streaming data where the compressed content length is unknown or followed by additional data.

MITcompiled wheel · 3.7.7+
879.2Kdownloads / mo
stream-unzip Worth it
PyPI · Compression · released Mar 2026

Streams unzip operations on ZIP archives without loading entire files into memory, supporting Deflate, Deflate64, Zip64, AES encryption, ZipCrypto, and BZip2 compression.

MITcompiled wheel · 3.7.7+
876.5Kdownloads / mo
handy-archives With conditions
PyPI · Compression · released Jul 2023

Provides utility functions for working with archive files (ZIP, TAR, and related formats) in Python, wrapping and extending standard library archiving operations.

However, verify that its specific helpers match your use case—the excerpt does not detail what operations it provides beyond standard tools.

MITpure Python · 3.6.1+
810.7Kdownloads / mo
lilcom With conditions
PyPI · Compression · released Jan 2026

Lossily compresses floating-point NumPy arrays into byte strings with user-specified accuracy, designed for storing training data and models in machine learning workflows.

MITcompiled wheel · 3.6+aging
706.8Kdownloads / mo
blosc With conditions
PyPI · Compression · released Jan 2026

Python wrapper for the Blosc compression library, providing fast compression and decompression of binary data optimized for numerical arrays and low-entropy data.

However, check whether Python-Blosc2 better suits your needs if you require more advanced features or plan a new project, as the maintainers recommend it as the more…

BSD-3-Clausecompiled wheel · 3.9+
608.6Kdownloads / mo
stream-zip Worth it
PyPI · Compression · released Feb 2026

Constructs ZIP archives on-the-fly without storing the entire file in memory or disk, supporting both Zip32 and Zip64 formats, password protection with AES-256 encryption, and streaming output.

Install it if you need to generate ZIPs on-the-fly in a web server or similar streaming context.

MITpure Python · 3.6.7+
604.4Kdownloads / mo
pyminizip With conditions
PyPI · Compression · released Dec 2021

Creates password-encrypted ZIP files that can be extracted on Windows, wrapping the minizip C library for compression and decompression with optional password protection.

Install only if you need Windows-compatible encrypted ZIPs and can verify the vulnerabilities do not affect your threat model; consider alternatives if you need…

permissive licensebuilds from sourcedormant2 known vulnerabilities
427.9Kdownloads / mo
deflate With conditions
PyPI · Compression · released Jul 2025

Thin Python wrapper around libdeflate for fast gzip, DEFLATE, and zlib compression/decompression, plus CRC32 and Adler-32 checksum computation.

MITcompiled wheel · 3.9+
331.7Kdownloads / mo
unlzw3 With conditions
PyPI · Compression · released Dec 2024

Decompresses .Z files (Unix compress format) using pure Python, working cross-platform without compiled dependencies.

MITpure Python · 3.9+dormant
328.9Kdownloads / mo
bz2file Skip
PyPI · Compression · released Jan 2014

Provides a drop-in replacement for Python's standard library bz2 module with support for multi-stream bzip2 files and additional methods like peek(), read1(), and readinto().

Apache-2.0builds from sourceabandoned
326.8Kdownloads / mo
django-dbbackup Worth it
PyPI · Compression · released Apr 2026

Provides Django management commands to backup and restore project databases and media files to various storage backends (S3, Dropbox, local storage) with optional GPG encryption and compression.

BSD-3-Clausepure Python · 3.10+
298.6Kdownloads / mo
xpress9 With conditions
PyPI · Compression · released Nov 2025

Xpress9 is a Python wrapper for Microsoft's Xpress9 compression library, providing efficient compression and decompression of binary data through a C extension with Cython bindings.

However, the limited community adoption (5 stars, 257 days since last release) and aging status suggest it may not receive timely updates or bug fixes.

MITcompiled wheel · 3.8+aging
249.3Kdownloads / mo
zipstream-new With conditions
PyPI · Compression · released Sep 2020

Generates zip archives as iterators of byte chunks, enabling streaming downloads without storing the entire archive in memory or on disk.

GPL-3.0-onlypure Pythonabandoned
247.5Kdownloads / mo
tzst With conditions
PyPI · Compression · released Apr 2026

tzst creates and extracts tar archives compressed with Zstandard, offering a Python API and command-line interface for archive management with streaming support and atomic operations.

BSD-3-Clausepure Python · 3.12+
207.0Kdownloads / mo
indexed-gzip With conditions
PyPI · Compression · released Dec 2025

Provides fast random access to gzip-compressed files by building an index of seek points, allowing you to jump to any location in the uncompressed data without decompressing from the beginning.

permissive licensecompiled wheel · 3.7+
131.9Kdownloads / mo
python-lzf Skip
PyPI · Compression · released Jun 2024

Provides Python bindings to the liblzf compression library, exposing compress() and decompress() functions for fast, lightweight data compression.

BSD-3-Clausebuilds from sourceabandoned
114.3Kdownloads / mo
xpress8 With conditions
PyPI · Compression · released May 2026

xpress8 provides Python bindings to Microsoft's Xpress8 compression library, enabling compression and decompression of data using the algorithm used by Power BI's .pbix format and Windows internal data stores.

MITcompiled wheel · 3.8+
103.7Kdownloads / mo
zip-files Skip
PyPI · Compression · released Apr 2021

Provides command-line tools to create zip files with arbitrary root folder names and compression methods, bundling files and directories from different filesystem locations.

BSD-3-Clausepure Python · 3.6+abandoned
98.8Kdownloads / mo
python-neo-lzf With conditions
PyPI · Compression · released Dec 2025

Provides fast compression and decompression of small data blocks using liblzf, a C library, through Python bindings with compress() and decompress() functions.

However, the aging maintenance status (232 days since last release, only 2 stars) and lack of active development signal suggest this is stable but not actively…

permissive licensecompiled wheel · 3.7+aging
83.1Kdownloads / mo