gRPC Reflection

What is gRPC reflection?

Check this out gRPC Python Server Reflection

Example

Refer to the GitHub reflection example

Module Contents

Reference implementation for reflection in gRPC Python.

class grpc_reflection.v1alpha.reflection.ReflectionServicer(service_names, pool=None)[source]

Servicer handling RPCs for service statuses.

ServerReflectionInfo(request_iterator, context)[source]

The reflection service is structured as a bidirectional stream, ensuring all related requests go to a single server.

grpc_reflection.v1alpha.reflection.enable_server_reflection(service_names, server, pool=None)[source]

Enables server reflection on a server.

Parameters
  • service_names – Iterable of fully-qualified service names available.

  • server – grpc.Server to which reflection service will be added.

  • pool – DescriptorPool object to use (descriptor_pool.Default() if None).