$npx skillfedfor your agent

zipfile-zstd

Monkey patch the standard zipfile module to enable Zstandard support

With conditionsPyPI ArchivingReleased Dec 20211.4M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — zipfile_zstd-0.0.4-py3-none-any.whl
v0.0.4 · released 2021-12-08 · Python >=3.6 · 1 runtime deps: zstandard

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

Licensepermissive license permissive
Python supportSupports the current Python release >=3.6
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
zstandard
MaintenanceDormant 1,710 days since the last release
Last repo commit
First released
Downloads1,379,846 / month, #3,982 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
zstandard zip compressionzipfile zstd supportzstd compressed archivesmonkey patch zipfilezstandard compression pythonzip with zstd algorithm
Topics
compressionzstandard
PyPI keywords
zipzipfilezstdzstandard

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

brotli Worth it
PyPI · Libraries · 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
reedsolo Worth it
PyPI · System · released Jan 2023

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.

Unlicensepure Python
2.8Mdownloads / mo
s3cmd With conditions
PyPI · Utilities · released Dec 2023

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.

GPL-2.0-or-laterpure Pythondormant
1.6Mdownloads / mo
zipfile-deflate64 With conditions
PyPI · Archiving · 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
unix-ar With conditions
PyPI · Utilities · released Jun 2019

Reads and writes AR archive files (Unix static library format), with an interface modeled on Python's standard tarfile and zipfile libraries.

BSD-3-Clausepure Pythonabandoned
859.3Kdownloads / mo
handy-archives With conditions
PyPI · Python Modules · 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

See also backports.zstd · zstd · tzst · zstandard · pyzstd · compress-pickle · pyvista-zstd · xopen · pyzipper