skillfed

types-grpcio

Typing stubs for grpcio

types-grpcio v1.83.0.20260730 2.4M downloads/30d#3,078 on PyPI37
Permissive license Apache-2.0 Active released

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

uv

uv add types-grpcio

poetry

poetry add types-grpcio

Installing 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

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

Tags

grpc type stubsgrpcio type hintsgrpc static type checkingtype annotations for grpcgrpcio type checking
type-stubsgrpc

More Software Development packages

typing-extensions

Provides backported and experimental type hints…

permissive · top 100 on PyPI

numpy

NumPy provides an N-dimensional array object…

permissive · top 100 on PyPI

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

annotated-doc

Provides a way to document function parameters,…

permissive · top 100 on PyPI

typer

Typer builds command-line applications from…

permissive · top 1,000 on PyPI

distlib

Distlib provides low-level packaging utilities…

permissive · top 1,000 on PyPI

grpc-stubs

Provides type stubs for gRPC Python, enabling…

permissive · top 5,000 on PyPI

types-google-cloud-ndb

Provides type stubs for google-cloud-ndb,…

permissive · top 15,000 on PyPI

types-networkx

Provides type stubs for networkx to enable…

permissive · top 5,000 on PyPI

types-pika-ts

Provides type stubs for the pika AMQP client…

permissive · top 15,000 on PyPI

types-grpcio-health-checking

Provides type stubs for grpcio-health-checking,…

permissive · top 15,000 on PyPI

types-Pygments

Provides type hints for the Pygments syntax…

permissive · top 5,000 on PyPI

types-protobuf

Provides type stubs for the protobuf package,…

permissive · top 1,000 on PyPI

types-gunicorn

Provides type stubs for gunicorn to enable…

permissive · top 15,000 on PyPI

grpcio-testing

Provides testing utilities and fixtures for…

permissive · top 15,000 on PyPI

types-antlr4-python3-runtime

Provides type stubs for antlr4-python3-runtime,…

permissive · top 15,000 on PyPI