--- id: types-zstd version: "1.5.7.3.20260722" license: Apache-2.0 license_treatment: permissive maintenance: active --- # types-zstd — Typing stubs for zstd License: permissive · Maintenance: active · Downloads: 215.7K/mo ## 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 above — 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 pip install types-zstd uv add types-zstd 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_current - Install friction: low - Maintenance: active - Downloads: 215.7K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags zstd type stubs, type hints for zstd, zstd typing annotations, mypy zstd support, pyright zstd stubs, type-stubs, compression [View on SkillFed](https://skillfed.io/packages/types-zstd) · [View on PyPI](https://pypi.org/project/types-zstd/)