zipfile-zstd
Monkey patch the standard zipfile module to enable Zstandard support
Decision gist · record as of 2026-08-14
Yes, if you need Zstandard support in ZIP files and are comfortable with dormant maintenance. The package is simple, has no known vulnerabilities, and low install friction. 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 cases where zstd compression is a requirement.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires zstandard package and Python 3.6 or later; dictionaries and advanced compression parameters are not supported.
- Low install friction; pure Python wheel with a single runtime dependency on zstandard.
- Maintenance is dormant—last release was 2021-12-08 and no commits since 2024-11-19—so expect no active support, but the codebase is small and unlikely to break with standard library changes.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive); you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2021-12-08 (1710 days) · last repo commit 2024-11-19 · 6 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,379,846 downloads/mo, #3,982 on PyPI
Alternatives
Verify before relying
pip install zipfile-zstd
import zipfile_zstd as zipfile
zf = zipfile.ZipFile('archive.zip', 'w', zipfile.ZIP_ZSTANDARD, compresslevel=19)
zf.write('file.txt')
zf.close()- Compatibility with Python versions newer than 3.6 (e.g., 3.11+) is not explicitly tested in the fact sheet.
- Performance characteristics and compression ratio compared to deflate or other algorithms.
- Whether the monkey patch persists across module reloads or in multi-threaded contexts.
What it is and what it does
zipfile-zstd is a thin wrapper that monkey-patches Python's standard zipfile module to recognize and handle Zstandard (zstd) compression. When imported, it registers ZIP_ZSTANDARD as a valid compression method, allowing you to create and extract ZIP files using the zstd algorithm. The package delegates actual compression to zstandard, which provides bindings to libzstd.
Typical use is a single import statement at the top of your code; after that, the standard zipfile API works transparently with zstd-compressed archives. The package supports both compression with configurable compression levels and decompression, but does not expose advanced zstd features like dictionaries or custom parameters.
Use it for
- Create smaller, faster-compressing ZIP archives for distribution or backup when zstd's compression ratio is preferable to deflate.
- Read ZIP files created by other tools or systems that use Zstandard compression.
- Integrate zstd compression into existing Python code that already uses zipfile, with minimal refactoring.
- Archive large files where zstd's speed-to-ratio trade-off offers better performance than standard compression methods.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need Zstandard support in ZIP files and are comfortable with dormant maintenance.
The package is simple, has no known vulnerabilities, and low install friction. 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 cases where zstd compression is a requirement.
Install
zipfile-zstd on PyPI
Before you install
Low install friction; pure Python wheel with a single runtime dependency on zstandard. Maintenance is dormant—last release was 2021-12-08 and no commits since 2024-11-19—so expect no active support, but the codebase is small and unlikely to break with standard library changes.
Requires zstandard package and Python 3.6 or later; dictionaries and advanced compression parameters are not supported.
License in practice
MIT license (permissive); you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install zipfile-zstd
import zipfile_zstd as zipfile
zf = zipfile.ZipFile('archive.zip', 'w', zipfile.ZIP_ZSTANDARD, compresslevel=19)
zf.write('file.txt')
zf.close()
Verify before relying
- Compatibility with Python versions newer than 3.6 (e.g., 3.11+) is not explicitly tested in the fact sheet.
- Performance characteristics and compression ratio compared to deflate or other algorithms.
- Whether the monkey patch persists across module reloads or in multi-threaded contexts.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagezstandard |
| Maintenance | Dormant 1,710 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,379,846 / month, #3,982 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: System :: ArchivingTopic :: System :: Archiving :: Compression |
Evidence: zipfile_zstd-0.0.4-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “zstandard zip compression”
- zipfile-zstdExtends Python's standard zipfile module to read and write ZIP…
- backports.zstdProvides Zstandard compression support for Python versions before…
- patoolPatool is a command-line archive manager that can create, extract,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Archiving packages
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.
Encodes and decodes data using Reed-Solomon error correction to detect and repair burst errors, supporting both pure Python and optional Cython-optimized implementations.
Install it if you need to protect stored or transmitted data from burst errors and want a straightforward, well-tested implementation.
s3cmd is a command-line tool for uploading, downloading, and managing files on Amazon S3 and CloudFront, with support for rsync-like backups and GPG encryption.
However, do not rely on it for new projects requiring active support—consider AWS CLI or boto3 instead if you need ongoing compatibility with AWS API changes.
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…
Reads and writes AR archive files (Unix static library format), with an interface modeled on Python's standard tarfile and zipfile libraries.
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.
See also backports.zstd · zstd · tzst · zstandard · pyzstd · compress-pickle · pyvista-zstd · xopen · pyzipper