module documentation

Extract service names from gRPC service stubs.

The placeholder calls prevent network requests. An extractor channel records service metadata for the Nebius asynchronous SDK.

Class ExtractorChannel Extract service names from gRPC stub classes.
Class ServiceStub Define gRPC service stub classes that accept a channel.
Class StubSS Represent a stream-stream gRPC method during introspection.
Class StubSU Represent a stream-unary gRPC method during introspection.
Class StubUS Represent a unary-stream gRPC method during introspection.
Class StubUU Represent a unary-unary gRPC method during introspection.
Exception NoMethodsInServiceError Report a service stub that has no gRPC methods.
Exception NotATrueCallError Report an attempt to run an introspection stub.
Function from_stub_class Return the service name from a gRPC stub class.
Type Variable Req Undocumented
Type Variable Res Undocumented
def from_stub_class(stub: type[ServiceStub]) -> str: (source)

Return the service name from a gRPC stub class.

Create the stub with an ExtractorChannel. The channel records a method and returns its service name.

Parameters
stub:type[ServiceStub]The stub class to extract from.
Returns
strThe service name.

Undocumented

Value
TypeVar('Req',
        bound=Message)

Undocumented

Value
TypeVar('Res',
        bound=Message)