types-zstd
Typing stubs for zstd
What it is and what it does
types-zstd is a type stub package that provides type annotations for the zstd compression library. It allows Python type checkers like mypy and pyright to understand and validate code that calls zstd functions, catching type errors at check time rather than runtime. The stubs are maintained as part of the typeshed project and track zstd version 1.5.7.3.
This package has no runtime dependencies and is purely for static analysis—it does not affect how your code runs. You install it alongside zstd itself so that your type checker can resolve type information when analyzing code that imports and uses zstd.
Use it for:
- Enable mypy or pyright to type-check code that compresses or decompresses data with zstd
- Catch type mismatches in zstd API calls during development before runtime
- Support IDE autocompletion and inline type hints for zstd functions in editors like VS Code
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type hints for the zstd compression library, enabling type checkers like mypy and pyright to validate code that uses zstd.
Yes, if you use zstd and run a type checker. It has no runtime cost, low install friction, and is actively maintained. Skip it only if you do not use static type checking or do not use zstd.
Install
types-zstd on PyPI
pip
pip install types-zstduv
uv add types-zstdpoetry
poetry add types-zstdInstalling types-zstd
Before you install
Low friction install with no runtime dependencies. Actively maintained as part of typeshed; last commit 2026-08-14.
License in practice
Apache-2.0 permissive license allows use in most projects without restriction.
Quickstart
pip install types-zstd
# In your code using zstd, type checkers will now understand the types:
import zstd
compressor = zstd.ZstdCompressor()
compressed = compressor.compress(b'data')
Requires Python 3.10 or later.
Verify before relying
- Whether this stub package is automatically discovered by type checkers or requires explicit configuration
- Coverage completeness for zstd's full API surface beyond the tested type checker versions
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 23 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 215,677/month — #9,395 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_zstd-1.5.7.3.20260722-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-mypy-extensionsProvides type stubs for mypy-extensions,…
permissive · top 15,000 on PyPI
types-docutilsProvides type hints for the docutils library,…
permissive · top 5,000 on PyPI
types-pytzProvides type stubs for the pytz timezone…
permissive · top 1,000 on PyPI
zstdProvides Python bindings to the Zstandard…
permissive · top 5,000 on PyPI
types-sixProvides type hints for the six Python 2/3…
permissive · top 5,000 on PyPI
types-geopandasProvides type annotations for the geopandas…
permissive · top 15,000 on PyPI
types-dockerProvides type hints for the docker package,…
permissive · top 5,000 on PyPI
types-paramikoProvides type hints for paramiko, enabling…
permissive · top 1,000 on PyPI
types-pynputProvides type hints for the pynput library,…
permissive · top 15,000 on PyPI
types-yt-dlpProvides type hints for yt-dlp, enabling static…
permissive · top 15,000 on PyPI