skillfed

grpcio-reflection

Standard Protobuf Reflection Service for gRPC

grpcio-reflection v1.83.0 9.9M downloads/30d#1,495 on PyPI
Permissive license Apache-2.0 Active released

What it is and what it does

grpcio-reflection is the standard reflection service implementation for gRPC Python. It allows a running gRPC server to expose metadata about its service definitions—the available RPC methods, their input and output message types, and other schema information—so that clients can dynamically discover and call methods without having the .proto files or generated stubs in advance.

The package is a thin wrapper around protobuf reflection capabilities, designed to integrate directly into grpcio servers. It depends on grpcio and protobuf as runtime dependencies and is maintained as part of the official gRPC project. It's classified as production-stable and actively maintained, with support for current Python versions.

Use it for:

  • Build dynamic gRPC clients that discover service methods at runtime without pre-generated stubs.
  • Enable interactive gRPC debugging tools and CLI utilities that need to introspect live services.
  • Support polyglot environments where clients in different languages need to query a Python gRPC service schema.
  • Implement gRPC API gateways or proxies that route calls based on dynamically discovered method signatures.
  • Create testing frameworks that validate gRPC services by reflecting on their available endpoints.

Worth the install?

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

Enables gRPC Python services to expose runtime reflection of their service definitions, allowing clients to discover available methods and message types without prior knowledge of the service schema.

Yes. This is the standard reflection implementation for gRPC Python, maintained as part of the official project, with low install friction and no known vulnerabilities. Install it if you need clients to discover gRPC service methods dynamically or if you're building tooling that requires runtime introspection of gRPC schemas.

Install

grpcio-reflection on PyPI

pip

pip install grpcio-reflection

uv

uv add grpcio-reflection

poetry

poetry add grpcio-reflection

Installing grpcio-reflection

Before you install

Low friction install with only two runtime dependencies (grpcio and protobuf). Active maintenance with a release 22 days ago. Supports modern Python versions from 3.10 through 3.14.

License in practice

Licensed under Apache-2.0 (permissive), allowing use in commercial and open-source projects with minimal restrictions.

Quickstart

pip install grpcio-reflection

from grpcio_reflection.v1 import reflection

reflection.enable_server_reflection(server)

Requires grpcio and protobuf to be installed; Python 3.10 or later.

Verify before relying

  • Whether reflection service adds measurable latency or memory overhead to running gRPC servers.
  • Support for reflection of custom service extensions or non-standard protobuf message types.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 2 — protobuf, grpcio
Maintenance actively maintained — 22 days since the last release
First released
Downloads 9,918,529/month — #1,495 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: grpcio_reflection-1.83.0-py3-none-any.whl

Development Status :: 5 - Production/StableProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

grpc reflection servicegrpc service discoveryprotobuf reflection pythongrpc introspectiongrpc method discoverygrpc dynamic clientgrpc schema reflection
grpcreflectionservice-discovery

More Internet packages