$npx skillfedfor your agent

pyzstd

Support for Zstandard (zstd) compression

SkipPyPI CompressionReleased Dec 20258.5M downloads / moBSD-3-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pyzstd-0.19.1-py3-none-any.whl
v0.19.1 · released 2025-12-13 · Python >=3.10 · 2 runtime deps: backports-zstd, typing-extensions

No for new projects—use Python's native compression.zstd module instead. Yes-with-conditions for existing codebases already using pyzstd that need to stay on Python 3.10+; the package is stable and actively maintained but the maintainers explicitly recommend migration to the standard library.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later; for older Python versions, the package recommends using backports.zstd instead.
  • Low install friction with a pure-wheel distribution.
  • Actively maintained with recent commits and production-stable status.

License · maintenance · safety

BSD-3-Clause (permissive) — BSD-3-Clause permissive license allows unrestricted commercial and private use with minimal obligations—suitable for most projects.

last release 2025-12-13 (244 days) · last repo commit 2026-05-10 · 49 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 8,519,496 downloads/mo, #1,612 on PyPI

Verify before relying

pip install pyzstd

import pyzstd

compressed = pyzstd.compress(b'data')
original = pyzstd.decompress(compressed)
  • Whether pyzstd offers performance advantages over direct use of compression.zstd in Python 3.10+
  • Specific seekable stream or tar-related functionality beyond standard compress/decompress
Same gist for agents: .md · .json

What it is and what it does

pyzstd is a Python wrapper around the Zstandard compression library that mirrors the API of Python's built-in compression modules (bz2, lzma, zlib). It compresses and decompresses data using the zstd format, which offers fast compression with good compression ratios. Since version 0.19.0, it internally uses Python's native compression.zstd module when available.

The package is now primarily a compatibility shim for projects that need zstd support on Python 3.10+. The maintainers recommend that new projects use Python's standard library compression.zstd directly, and existing projects consider migrating. It remains actively maintained and carries no known security vulnerabilities.

Use it for

  • Compress and decompress data in zstd format on Python 3.10+ where native support is available
  • Migrate legacy code from pyzstd to the standard library compression.zstd module
  • Work with seekable zstd streams or tar archives in zst format
  • Maintain compatibility with code written against the pyzstd API

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No for new projects—use Python's native compression.zstd module instead.

Yes-with-conditions for existing codebases already using pyzstd that need to stay on Python 3.10+; the package is stable and actively maintained but the maintainers explicitly recommend migration to the standard library.

Install

pyzstd on PyPI

Before you install

Low install friction with a pure-wheel distribution. Actively maintained with recent commits and production-stable status. Internally delegates to Python's native compression.zstd since version 0.19.0, making it a compatibility layer for older Python versions.

Requires Python 3.10 or later; for older Python versions, the package recommends using backports.zstd instead.

License in practice

BSD-3-Clause permissive license allows unrestricted commercial and private use with minimal obligations—suitable for most projects.

Quickstart

pip install pyzstd

import pyzstd

compressed = pyzstd.compress(b'data')
original = pyzstd.decompress(compressed)

Verify before relying

  • Whether pyzstd offers performance advantages over direct use of compression.zstd in Python 3.10+
  • Specific seekable stream or tar-related functionality beyond standard compress/decompress

Package facts

LicenseBSD-3-Clause permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
backports-zstdtyping-extensions
MaintenanceActively maintained 244 days since the last release
Last repo commit
First released
Downloads8,519,496 / month, #1,612 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: System :: Archiving :: Compression

Evidence: pyzstd-0.19.1-py3-none-any.whl

Tags

Capabilities
zstandard compression pythonzstd compression bindingspython zstd librarycompress decompress zstseekable compression formatzstandard file compression
Topics
compressionzstandardcompatibility-shim
PyPI keywords
compressdecompressfileseekseekabletarzstzstandardzstd

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 › “compress decompress zst”

  • pyzstdProvides Python bindings to the Zstandard (zstd) compression library…
  • python-neo-lzfProvides fast compression and decompression of small data blocks…
  • ncompressProvides LZW compression and decompression functions that accept…

Give your agent the search over MCP, or paste the wish link into any chat.

More Compression 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
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 · Software Development · 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
compressed-rtf With conditions
PyPI · Text Processing · 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

See also lz4 · pybcj · xopen · zstd · pyvista-zstd · zstandard · pyppmd · tzst · zipfile-zstd