types-grpcio
Typing stubs for grpcio
What it is and what it does
types-grpcio is a type stub package that provides type annotations for the grpcio library. It allows static type checkers to understand and validate code that calls gRPC functions and classes, catching type errors before runtime. The stubs are generated from the typeshed project and kept in sync with grpcio versions.
This is a stub-only package with no runtime dependencies—it exists purely to improve your development experience through type checking. It's marked as partial, meaning some annotations may be incomplete; the typeshed project welcomes contributions to fill gaps. The package is tested against mypy 2.3.0, pyright 1.1.411, and ty 0.0.59.
Use it for:
- Enable type checkers to validate gRPC client and server code in your project.
- Catch type mismatches in gRPC service definitions and method calls during development.
- Improve IDE autocomplete and inline documentation for grpcio APIs.
- Validate gRPC message marshalling and RPC handler signatures in a type-safe workflow.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for the grpcio package, enabling static type checkers like mypy and pyright to validate code that uses gRPC.
Yes, if you use grpcio and want static type checking. Install it alongside grpcio to enable type checkers to validate your gRPC code. No runtime cost, low friction, and actively maintained. The partial coverage is not a blocker unless you hit unannotated APIs.
Install
types-grpcio on PyPI
pip
pip install types-grpciouv
uv add types-grpciopoetry
poetry add types-grpcioInstalling types-grpcio
Before you install
Low install friction with no runtime dependencies. Actively maintained as part of the typeshed project, with a recent release 15 days old.
License in practice
Licensed under Apache-2.0 (permissive), imposing no restrictions on use in proprietary or open-source projects.
Quickstart
pip install types-grpcio
import grpcio
# Type checkers now understand grpcio APIs
Requires Python 3.10 or later.
Verify before relying
- Whether coverage of grpcio's API surface is sufficient for your specific use cases, given the package is marked as partial.
- Compatibility with type checkers other than mypy 2.3.0, pyright 1.1.411, and ty 0.0.59.
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 — 15 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,404,990/month — #3,078 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_grpcio-1.83.0.20260730-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
grpc-stubsProvides type stubs for gRPC Python, enabling…
permissive · top 5,000 on PyPI
types-google-cloud-ndbProvides type stubs for google-cloud-ndb,…
permissive · top 15,000 on PyPI
types-networkxProvides type stubs for networkx to enable…
permissive · top 5,000 on PyPI
types-pika-tsProvides type stubs for the pika AMQP client…
permissive · top 15,000 on PyPI
types-grpcio-health-checkingProvides type stubs for grpcio-health-checking,…
permissive · top 15,000 on PyPI
types-PygmentsProvides type hints for the Pygments syntax…
permissive · top 5,000 on PyPI
types-protobufProvides type stubs for the protobuf package,…
permissive · top 1,000 on PyPI
types-gunicornProvides type stubs for gunicorn to enable…
permissive · top 15,000 on PyPI
grpcio-testingProvides testing utilities and fixtures for…
permissive · top 15,000 on PyPI
types-antlr4-python3-runtimeProvides type stubs for antlr4-python3-runtime,…
permissive · top 15,000 on PyPI