skillfed

types-zstd

Typing stubs for zstd

types-zstd v1.5.7.3.20260722 215.7K downloads/30d#9,395 on PyPI37
Permissive license Apache-2.0 Active released

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-zstd

uv

uv add types-zstd

poetry

poetry add types-zstd

Installing 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

Programming Language :: Python :: 3Typing :: Stubs Only

Tags

zstd type stubstype hints for zstdzstd typing annotationsmypy zstd supportpyright zstd stubs
type-stubscompression

More Software Development packages