types-protobuf
Typing stubs for protobuf
Install
types-protobuf on PyPI
pip
pip install types-protobufuv
uv add types-protobufpoetry
poetry add types-protobufPackage 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 — 87 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: types_protobuf-7.34.1.20260518-py3-none-any.whl
About types-protobuf
from the package's own PyPI description — quoted content, verbatim
Typing stubs for protobuf
This is a type stub package
for the protobuf package. It can be used by type checkers
to check code that uses protobuf. This version of
types-protobuf aims to provide accurate annotations for
protobuf~=7.34.1.
Partially generated using mypy-protobuf==3.6.0 and libprotoc 34.1 on protobuf v34.1 (python protobuf==7.34.1).
This stub package is marked as partial. If you find that annotations are missing, feel free to contribute and help complete them.
This package is part of the typeshed project. All fixes for types and metadata should be contributed there. See the README for more details. The source for this package can be found in...
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 type stubs for protobuf, enabling static type checkers like mypy and pyright to validate code that uses protobuf without requiring the full protobuf runtime.
Minimal friction: a pure-Python stub package with zero runtime dependencies, distributed as a wheel. Active maintenance from the typeshed project with recent releases.
Apache-2.0 permissive license allows free use, modification, and distribution in both open-source and proprietary projects with minimal restrictions.
Usage
pip install types-protobuf==7.34.1.20260518
Requires Python 3.10 or later. This is a stub-only package; the actual protobuf runtime must be installed separately.
Verdict: A lightweight, actively maintained type-stub package from the official typeshed project, suitable for adding type safety to protobuf code. Zero security vulnerabilities and permissive licensing make it a safe choice for type-checking workflows.
Needs verification
- Coverage completeness: the package is marked as partial; extent of missing annotations for protobuf 7.34.1 is unknown.
- Whether mypy-protobuf 3.6.0 and libprotoc 34.1 remain current for the latest protobuf releases.
Similar packages
permissive · top 1,000 on PyPI
types-PyYAMLpermissive · top 1,000 on PyPI
types-paramikopermissive · top 1,000 on PyPI
types-pytzpermissive · top 1,000 on PyPI
types-cachetoolspermissive · top 1,000 on PyPI
types-python-dateutilpermissive · top 1,000 on PyPI
types-requestspermissive · top 1,000 on PyPI
types-setuptoolspermissive · top 1,000 on PyPI
types-certifipermissive · top 1,000 on PyPI
types-urllib3permissive · top 1,000 on PyPI