--- id: types-protobuf version: "7.34.1.20260518" license: Apache-2.0 license_treatment: permissive maintenance: active --- # types-protobuf — Typing stubs for protobuf License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install types-protobuf uv add types-protobuf poetry add types-protobuf ## Description ## Typing stubs for protobuf This is a [type stub package](https://typing.python.org/en/latest/tutorials/external_libraries.html) for the [`protobuf`](https://github.com/protocolbuffers/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](https://github.com/nipunn1313/mypy-protobuf/tree/v3.6.0) and libprotoc 34.1 on [protobuf v34.1](https://github.com/protocolbuffers/protobuf/releases/tag/v34.1) (python `protobuf==7.34.1`). This stub package is marked as [partial](https://typing.python.org/en/latest/spec/distributing.html#partial-stub-packages). If you find that annotations are missing, feel free to contribute and help complete them. This package is part of the [typeshed project](https://github.com/python/typeshed). All fixes for types and metadata should be contributed there. See [the README](https://github.com/python/typeshed/blob/main/README.md) for more details. The source for this package can be found in... ## AI interpretation — verify before relying 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. 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. [View on SkillFed](https://skillfed.io/packages/types-protobuf) · [View on PyPI](https://pypi.org/project/types-protobuf/)