skillfed

backports.zstd

Backport of compression.zstd

backports-zstd Permissive license PSF-2.0 Active 28 v1.6.0 released

Install

backports-zstd on PyPI

pip

pip install backports-zstd

uv

uv add backports-zstd

poetry

poetry add backports-zstd

Package facts

License PSF-2.0 (permissive)
Python support supports the current Python release (<3.14,>=3.10)
Install friction medium — platform-specific wheel
Runtime dependencies none
Maintenance actively maintained — 60 days since the last release
Last repo commit
First released
Popularity one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13)
Known vulnerabilities none known (OSV.dev, checked 2026-08-13)

Evidence: backports_zstd-1.6.0-cp310-cp310-macosx_10_9_x86_64.whl; backports_zstd-1.6.0-cp310-cp310-macosx_11_0_arm64.whl; backports_zstd-1.6.0-cp310-cp310-manylinux2010_i686.manylinux_2_12_i686.manylinux_2_28_i686.whl; backports_zstd-1.6.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; backports_zstd-1.6.0-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl; backports_zstd-1.6.0-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl; backports_zstd-1.6.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; backports_zstd-1.6.0-cp310-cp310-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl; backports_zstd-1.6.0-cp310-cp310-musllinux_1_2_aarch64.whl; backports_zstd-1.6.0-cp310-cp310-musllinux_1_2_i686.whl; backports_zstd-1.6.0-cp310-cp310-musllinux_1_2_ppc64le.whl; backports_zstd-1.6.0-cp310-cp310-musllinux_1_2_riscv64.whl; backports_zstd-1.6.0-cp310-cp310-musllinux_1_2_s390x.whl; backports_zstd-1.6.0-cp310-cp310-musllinux_1_2_x86_64.whl; backports_zstd-1.6.0-cp310-cp310-win32.whl; backports_zstd-1.6.0-cp310-cp310-win_amd64.whl; backports_zstd-1.6.0-cp310-cp310-win_arm64.whl; backports_zstd-1.6.0-cp311-cp311-macosx_10_9_x86_64.whl; backports_zstd-1.6.0-cp311-cp311-macosx_11_0_arm64.whl; backports_zstd-1.6.0-cp311-cp311-manylinux2010_i686.manylinux_2_12_i686.manylinux_2_28_i686.whl

Keywords: backport, backports, pep-784, zstd

Development Status :: 5 - Production/StableIntended Audience :: DevelopersProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: System :: Archiving :: Compression

About backports.zstd

from the package's own PyPI description — quoted content, verbatim

<div align="center" size="15px">

backports.zstd

Backport of PEP-784 “adding Zstandard to the standard library”

GitHub build status (image) Release on PyPI (image)


📖 PEP-784&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;📃 Changelog

</div>


Install

Add the following dependency to your project:

backports.zstd ; python_version&lt;'3.14'

…or just run pip install backports.zstd.

Usage

When importing a module needing Zstandard support, use a conditional import based on the version of Python. See below for examples.

zstd
import sys

if sys.version_info &gt;= (3, 14):
    from compression import zstd
else:
    from backports import zstd


# use the zstd module, for example:
zstd.compress(b"Hello, world!")

Refer to the official Python documentation for usage of the module.

Read as markdown · JSON record · Source repository · Homepage

AI interpretation — verify before relying

AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page

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

Medium install friction due to compiled wheels across many platforms (x86_64, ARM, RISC-V, s390x, ppc64le, i686, and musllinux variants for Python 3.10–3.13). No runtime dependencies. Last release 60 days ago with active maintenance.

Licensed under PSF-2.0, a permissive license compatible with most projects; no restrictions on commercial or proprietary use.

Usage

import sys
if sys.version_info >= (3, 14):
    from backports import zstd
else:
    from backports import zstd

compressed = zstd.compress(b"Hello, world!")

Requires Python 3.10–3.13; intentionally does not install on Python 3.14+ where zstd is in the standard library.

Verdict: A well-maintained, production-stable backport of PEP-784's zstd compression for older Python versions. No security vulnerabilities reported. Medium install friction is expected for a compiled extension with broad platform coverage. Suitable for projects needing zstd support before Python 3.14.

Needs verification

  • Whether the bundled libzstd has known vulnerabilities independent of this package's OSV record.
  • Performance characteristics compared to system libzstd when using the --system-zstd build option.
zstandard compression pythonzstd backport pep-784tar zst zip compressionpython compression libraryzstd tarfile zipfile support

Similar packages