module documentation
Service descriptor utilities for gRPC services.
This module provides classes and functions to extract service names from gRPC stub classes and handle service method descriptors in the Nebius async SDK. It includes stub implementations that prevent actual calls and an extractor channel for introspecting service metadata.
| Class | |
A mock gRPC channel for extracting service names from stub classes. |
| Class | |
Protocol for gRPC service stub classes. |
| Class | |
Stub implementation for stream-stream gRPC methods. |
| Class | |
Stub implementation for stream-unary gRPC methods. |
| Class | |
Stub implementation for unary-stream gRPC methods. |
| Class | |
Stub implementation for unary-unary gRPC methods. |
| Exception | |
Error raised when no methods are found in a service stub. |
| Exception | |
Error raised when attempting to call a stub method that is not meant to be executed. |
| Function | from |
Extract the service name from a gRPC stub class. |
| Type Variable | |
Undocumented |
| Type Variable | |
Undocumented |
Extract the service name from a gRPC stub class.
Uses an ExtractorChannel to instantiate the stub and record method calls, then extracts the service name from the recorded method.
| Parameters | |
stub:type[ServiceStub] | The stub class to extract from. |
| Returns | |
| str | The service name. |