Registry / type-stubs / types-grpcio-status

types-grpcio-status

JSON →
library1.0.0.20260408pypypiunverified

Typing stubs for grpcio-status, version 1.0.0.20260408. Provided by typeshed. Updated in lockstep with the grpcio-status package. This is a stub-only package that adds type annotations to grpcio-status. Released weekly or as needed.

pip install types-grpcio-status
INSTALL
IMPORT
SIG · TYPES-GRPCIO-STATU
T
types-grpcio-status
type-stubspythonv1.0.0.20260408
Install
1.6s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.0.20260408 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

rpc_status
from grpc_status_stubs import rpc_status
from grpc_status_stubs import rpc_status

Basic usage: import the stubs and use rpc_status to extract error details from a gRPC call.

import grpc from grpc_status import rpc_status from google.protobuf import any_pb2 try: # your gRPC call except grpc.RpcError as e: status = rpc_status.from_call(e) if status: print(f"Error code: {status.code}, details: {status.details}")
Debug
Known issues
gotchaDo not import from grpcio_status directly. The correct top-level module is grpc_status.
fix
Use 'from grpc_status import rpc_status'.
affects: all
deprecatedThe types-grpcio-status package is a stub-only package. Ensure you have the corresponding grpcio-status package installed, otherwise the stubs are useless.
fix
Install grpcio-status: pip install grpcio-status
affects: all
gotchaThe stub types may not perfectly match the runtime if the version of grpcio-status lags behind the stub version. Always keep both packages in sync.
fix
Pin both packages to compatible versions.
affects: all
Upgrade
Version history
1.0.0.20260408latest on PyPI · released Apr 8, 2026
Audit
Dependencies
grpcio-statusrequiredRuntime dependency for grpcio-status itself
Agent activity
27 hits · last 30 days
node
22
OpenAI (training)
4
Resources