skillfed

grpc-stubs

Mypy stubs for gRPC

grpc-stubs v1.53.0.6 3.4M downloads/30d#2,635 on PyPI41
Permissive license MIT Abandoned released

What it is and what it does

grpc-stubs is a PEP 561-compliant stub-only package that provides type information for the gRPC library, allowing developers to use static type checkers like mypy to validate gRPC code. It depends only on grpcio and installs as a pure Python wheel with no compiled dependencies.

The package is now archived and abandoned as of 2025-04-28. The maintainer has transferred active development to typeshed, the community-maintained repository of type stubs for the Python ecosystem. While the last release was recent, no new features or fixes should be expected from this repository; users should plan to migrate to typeshed's gRPC stubs for ongoing support.

Use it for:

  • Type-check gRPC service definitions and client code with mypy before runtime.
  • Enable IDE autocompletion and inline type hints for gRPC imports and calls.
  • Validate gRPC message and service definitions in a CI/CD pipeline using mypy.
  • Provide type safety for gRPC-based microservices during development.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides type stubs for gRPC Python, enabling static type checking of gRPC code with mypy and other type checkers.

No. The package is archived and abandoned; the maintainer explicitly directs users to typeshed for ongoing support. While it has no known vulnerabilities and low install friction, installing a stub package with no active maintenance creates a maintenance debt. Install typeshed's gRPC stubs instead, or use a tool that automatically pulls stubs from typeshed.

Install

grpc-stubs on PyPI

pip

pip install grpc-stubs

uv

uv add grpc-stubs

poetry

poetry add grpc-stubs

Installing grpc-stubs

Before you install

Low install friction with a single runtime dependency on grpcio. However, the package is archived as of 2025-04-28 and marked abandoned; active development has moved to typeshed. The last release was 473 days ago.

License in practice

MIT license is permissive and imposes no restrictions on use, modification, or distribution.

Quickstart

pip install grpc-stubs

Then use with mypy or another PEP 561-compliant type checker to validate gRPC code:

mypy your_grpc_code.py

Requires grpcio to be installed; intended for development/type-checking workflows, not runtime.

Verify before relying

  • Whether typeshed's gRPC stubs are a drop-in replacement or require migration steps.
  • Current compatibility with Python versions beyond 3.8, given the package is archived.
  • Whether the stubs remain accurate for recent grpcio versions post-abandonment.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.6)
Install friction low — pure-Python wheel
Runtime dependencies 1 — grpcio
Maintenance abandoned — 473 days since the last release
Last repo commit (repository archived)
First released
Downloads 3,398,091/month — #2,635 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: grpc_stubs-1.53.0.6-py3-none-any.whl

Development Status :: 3 - AlphaLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8

Tags

grpc type stubsmypy stubs for grpcgrpc typingtype checking grpc pythonpep 561 grpc stubsgrpc type hintsstatic type checking grpc
type-stubsgrpcarchived

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

types-grpcio

Provides type stubs for the grpcio package,…

permissive · top 5,000 on PyPI

types-grpcio-health-checking

Provides type stubs for grpcio-health-checking,…

permissive · top 15,000 on PyPI

types-grpcio-reflection

Provides type hints for grpcio-reflection,…

permissive · top 15,000 on PyPI

types-grpcio-status

Provides type stubs for grpcio-status, enabling…

permissive · top 15,000 on PyPI

pytest-mypy-plugins

A pytest plugin that runs type-checking tests…

permissive · top 15,000 on PyPI

sortedcontainers-stubs

Provides type stubs for the sortedcontainers…

permissive · top 5,000 on PyPI

types-redis

Provides type stubs for the redis package,…

permissive · top 1,000 on PyPI

django-filter-stubs

Provides PEP-484 type stubs for django-filter…

permissive · top 15,000 on PyPI

types-dataclasses

Provides type stubs for Python's dataclasses…

permissive · top 15,000 on PyPI

pydub-stubs

Provides type stubs for Pydub, enabling static…

permissive · top 15,000 on PyPI