grpc の API リファレンス
grpc (grpc/grpc) の公開 API 173 件 —— クラス 110、関数 4、メソッド 59。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: grpc/grpc
| 種別 | 件数 |
|---|---|
| クラス | 110 |
| 関数 | 4 |
| メソッド | 59 |
API 一覧
class
py_xds_protos.envoy.service.load_stats.v2.lrs_pb2_grpc.LoadReportingService[#protodoc-title: Load reporting service]
class
py_xds_protos.envoy.service.load_stats.v2.lrs_pb2_grpc.LoadReportingServiceServicer[#protodoc-title: Load reporting service]
class
py_xds_protos.envoy.service.load_stats.v2.lrs_pb2_grpc.LoadReportingServiceStub[#protodoc-title: Load reporting service]
class
py_xds_protos.envoy.service.ratelimit.v2.rls_pb2_grpc.RateLimitService[#protodoc-title: Rate Limit Service (RLS)]
class
py_xds_protos.envoy.service.ratelimit.v2.rls_pb2_grpc.RateLimitServiceServicer[#protodoc-title: Rate Limit Service (RLS)]
class
py_xds_protos.envoy.service.ratelimit.v2.rls_pb2_grpc.RateLimitServiceStub[#protodoc-title: Rate Limit Service (RLS)]
class
py_xds_protos.envoy.service.ratelimit.v3.rls_pb2_grpc.RateLimitService[#protodoc-title: Rate limit service (RLS)]
class
py_xds_protos.envoy.service.ratelimit.v3.rls_pb2_grpc.RateLimitServiceServicer[#protodoc-title: Rate limit service (RLS)]
class
py_xds_protos.envoy.service.ratelimit.v3.rls_pb2_grpc.RateLimitServiceStub[#protodoc-title: Rate limit service (RLS)]
class
py_xds_protos.envoy.service.secret.v3.sds_pb2_grpc.SecretDiscoveryService[#protodoc-title: Secret Discovery Service (SDS)]
class
src.boringssl.gen_build_yaml.GrpcAdapter for boring-SSL json sources files.
class
src.python.grpcio.commands.BuildExtCustom build_ext command to enable compiler-specific flags.
class
src.python.grpcio.commands.BuildProjectMetadataCommand to generate project metadata in a module.
class
src.python.grpcio.commands.BuildPyCustom project build command.
class
src.python.grpcio.commands.CleanCommand to clean build artifacts.
class
src.python.grpcio.commands.CommandErrorSimple exception class for GRPC custom commands.
class
src.python.grpcio.commands.GatherCommand to gather project dependencies.
class
src.python.grpcio.commands.SphinxDocumentationCommand to generate documentation via sphinx.
class
src.python.grpcio.grpc.AuthMetadataContextProvides information to call credentials metadata plugins.
class
src.python.grpcio.grpc.AuthMetadataPluginA specification for custom authentication.
class
src.python.grpcio.grpc.AuthMetadataPluginCallbackCallback object received by a metadata plugin.
class
src.python.grpcio.grpc.CallInvocation-side utility object for an RPC.
method
src.python.grpcio.grpc.Call.details()Accesses the details sent by the server.
class
src.python.grpcio.grpc.ChannelAffords RPC invocation via generic methods on client-side.
class
src.python.grpcio.grpc.ChannelConnectivityMirrors grpc_connectivity_state in the gRPC Core.
class
src.python.grpcio.grpc.ClientCallDetailsDescribes an RPC to be invoked.
class
src.python.grpcio.grpc.CompressionIndicates the compression method to be used for an RPC.
class
src.python.grpcio.grpc.FutureA representation of a computation in another control flow.
method
src.python.grpcio.grpc.Future.cancel()Attempts to cancel the computation.
class
src.python.grpcio.grpc.FutureTimeoutErrorIndicates that a method call on a Future timed out.
class
src.python.grpcio.grpc.GenericRpcHandlerAn implementation of arbitrarily many RPC methods.
class
src.python.grpcio.grpc.HandlerCallDetailsDescribes an RPC that has just arrived for service.
class
src.python.grpcio.grpc.LocalConnectionTypeTypes of local connection for local credential creation.
class
src.python.grpcio.grpc.RpcContextProvides RPC-related information and action.
method
src.python.grpcio.grpc.RpcContext.cancel()Cancels the RPC.
class
src.python.grpcio.grpc.RpcMethodHandlerAn implementation of a single RPC method.
class
src.python.grpcio.grpc.ServerServices RPCs.
method
src.python.grpcio.grpc.Server.start()Starts this Server.
method
src.python.grpcio.grpc.Server.stop(grace)Stops this Server.
class
src.python.grpcio.grpc.ServerInterceptorAffords intercepting incoming RPCs on the service-side.
class
src.python.grpcio.grpc.ServiceRpcHandlerAn implementation of RPC methods belonging to a service.
method
src.python.grpcio.grpc.ServiceRpcHandler.service_name()Returns this service's name.
class
src.python.grpcio.grpc.ServicerContextA context object passed to method implementations.
method
src.python.grpcio.grpc.ServicerContext.auth_context()Gets the auth context for the call.
method
src.python.grpcio.grpc.ServicerContext.peer_identities()Gets one or more peer identity(s).
class
src.python.grpcio.grpc.StatusDescribes the status of an RPC.
class
src.python.grpcio.grpc.StatusCodeMirrors grpc_status_code in the gRPC Core.
class
src.python.grpcio.grpc.StreamStreamClientInterceptorAffords intercepting stream-stream invocations.
class
src.python.grpcio.grpc.StreamStreamMultiCallableAffords invoking a stream-stream RPC on client-side.
class
src.python.grpcio.grpc.StreamUnaryClientInterceptorAffords intercepting stream-unary invocations.
class
src.python.grpcio.grpc.StreamUnaryMultiCallableAffords invoking a stream-unary RPC from client-side.
class
src.python.grpcio.grpc.UnaryStreamClientInterceptorAffords intercepting unary-stream invocations.
class
src.python.grpcio.grpc.UnaryStreamMultiCallableAffords invoking a unary-stream RPC from client-side.
class
src.python.grpcio.grpc.UnaryUnaryClientInterceptorAffords intercepting unary-unary invocations.
class
src.python.grpcio.grpc.UnaryUnaryMultiCallableAffords invoking a unary-unary RPC from client-side.
class
src.python.grpcio.grpc._auth.AccessTokenAuthMetadataPluginMetadata wrapper for raw access token credentials.
class
src.python.grpcio.grpc._channel.ChannelA cygrpc.Channel-backed implementation of grpc.Channel.
func
src.python.grpcio.grpc._common.validate_port_binding_result(address:str, port:int) -> intValidates if the port binding succeed.
class
src.python.grpcio.grpc._observability.ObservabilityPluginAbstract base class for observability plugin.
method
src.python.grpcio.grpc._observability.ObservabilityPlugin.create_client_call_tracer(method_name:bytes, target:bytes) -> ClientCallTracerCapsuleCreates a ClientCallTracerCapsule.
method
src.python.grpcio.grpc._observability.ObservabilityPlugin.create_server_call_tracer_factory(*xds:bool=False) -> Optional[ServerCallTracerFactoryCapsule]Creates a ServerCallTracerFactoryCapsule.
method
src.python.grpcio.grpc._observability.ObservabilityPlugin.record_rpc_latency(method:str, target:str, rpc_latency:float, status_code:Any) -> NoneRecord the latency of the RPC.
method
src.python.grpcio.grpc._observability.ObservabilityPlugin.save_registered_method(method_name:bytes) -> NoneSaves the method name to registered_method list.
method
src.python.grpcio.grpc._observability.ObservabilityPlugin.set_stats(enable:bool) -> NoneEnable or disable stats(metrics).
method
src.python.grpcio.grpc._observability.ObservabilityPlugin.set_tracing(enable:bool) -> NoneEnable or disable tracing.
class
src.python.grpcio.grpc._observability.ServerCallTracerFactoryAn encapsulation of a ServerCallTracerFactory.
func
src.python.grpcio.grpc._observability.set_plugin(observability_plugin:Optional[ObservabilityPlugin]) -> NoneSave ObservabilityPlugin to _observability module.
func
src.python.grpcio.grpc._utilities.first_version_is_lower(version1:str, version2:str) -> boolCompares two versions in the format '1.60.1' or '1.60.1.dev0'.
class
src.python.grpcio.grpc.aio._base_call.CallThe abstract base class of an RPC on the client-side.
method
src.python.grpcio.grpc.aio._base_call.Call.code() -> grpc.StatusCodeAccesses the status code sent by the server.
method
src.python.grpcio.grpc.aio._base_call.Call.details() -> strAccesses the details sent by the server.
method
src.python.grpcio.grpc.aio._base_call.Call.initial_metadata() -> MetadataAccesses the initial metadata sent by the server.
method
src.python.grpcio.grpc.aio._base_call.Call.trailing_metadata() -> MetadataAccesses the trailing metadata sent by the server.
class
src.python.grpcio.grpc.aio._base_call.RpcContextProvides RPC-related information and action.
method
src.python.grpcio.grpc.aio._base_call.RpcContext.add_done_callback(callback:DoneCallbackType) -> NoneRegisters a callback to be called on RPC termination.
method
src.python.grpcio.grpc.aio._base_call.RpcContext.cancel() -> boolCancels the RPC.
method
src.python.grpcio.grpc.aio._base_call.RpcContext.cancelled() -> boolReturn True if the RPC is cancelled.
method
src.python.grpcio.grpc.aio._base_call.RpcContext.done() -> boolReturn True if the RPC is done.
method
src.python.grpcio.grpc.aio._base_call.StreamStreamCall.read() -> Union[EOFType, ResponseType]Reads one message from the stream.
method
src.python.grpcio.grpc.aio._base_call.StreamStreamCall.write(request:RequestType) -> NoneWrites one message to the stream.
method
src.python.grpcio.grpc.aio._base_call.StreamUnaryCall.write(request:RequestType) -> NoneWrites one message to the stream.
method
src.python.grpcio.grpc.aio._base_call.UnaryStreamCall.read() -> Union[EOFType, ResponseType]Reads one message from the stream.
class
src.python.grpcio.grpc.aio._base_channel.ChannelEnables asynchronous RPC invocation as a client.
method
src.python.grpcio.grpc.aio._base_channel.Channel.get_state(try_to_connect:bool=False) -> grpc.ChannelConnectivityChecks the connectivity state of a channel.
method
src.python.grpcio.grpc.aio._base_channel.Channel.wait_for_state_change(last_observed_state:grpc.ChannelConnectivity) -> NoneWaits for a change in connectivity state.
class
src.python.grpcio.grpc.aio._base_channel.UnaryUnaryMultiCallableEnables asynchronous invocation of a unary-call RPC.
class
src.python.grpcio.grpc.aio._base_server.ServerServes RPCs.
method
src.python.grpcio.grpc.aio._base_server.Server.add_generic_rpc_handlers(generic_rpc_handlers:Sequence[grpc.GenericRpcHandler]) -> NoneRegisters GenericRpcHandlers with this Server.
method
src.python.grpcio.grpc.aio._base_server.Server.add_insecure_port(address:str) -> intOpens an insecure port for accepting RPCs.
method
src.python.grpcio.grpc.aio._base_server.Server.add_secure_port(address:str, server_credentials:grpc.ServerCredentials) -> intOpens a secure port for accepting RPCs.
method
src.python.grpcio.grpc.aio._base_server.Server.start() -> NoneStarts this Server.
method
src.python.grpcio.grpc.aio._base_server.Server.stop(grace:Optional[float]) -> NoneStops this Server.
method
src.python.grpcio.grpc.aio._base_server.Server.wait_for_termination(timeout:Optional[float]=None) -> boolContinues current coroutine once the server stops.
class
src.python.grpcio.grpc.aio._base_server.ServicerContextA context object passed to method implementations.
method
src.python.grpcio.grpc.aio._base_server.ServicerContext.add_done_callback(callback:DoneCallbackType) -> NoneRegisters a callback to be called on RPC termination.
method
src.python.grpcio.grpc.aio._base_server.ServicerContext.auth_context() -> Mapping[str, Iterable[bytes]]Gets the auth context for the call.
method
src.python.grpcio.grpc.aio._base_server.ServicerContext.cancelled() -> boolReturn True if the RPC is cancelled.
method
src.python.grpcio.grpc.aio._base_server.ServicerContext.done() -> boolReturn True if the RPC is done.
method
src.python.grpcio.grpc.aio._base_server.ServicerContext.invocation_metadata() -> Optional[MetadataType]Accesses the metadata sent by the client.
method
src.python.grpcio.grpc.aio._base_server.ServicerContext.peer_identities() -> Optional[Iterable[bytes]]Gets one or more peer identity(s).
method
src.python.grpcio.grpc.aio._base_server.ServicerContext.peer_identity_key() -> Optional[str]The auth property used to identify the peer.
method
src.python.grpcio.grpc.aio._base_server.ServicerContext.read() -> RequestTypeReads one message from the RPC.
method
src.python.grpcio.grpc.aio._base_server.ServicerContext.send_initial_metadata(initial_metadata:MetadataType) -> NoneSends the initial metadata value to the client.
method
src.python.grpcio.grpc.aio._base_server.ServicerContext.set_trailing_metadata(trailing_metadata:MetadataType) -> NoneSends the trailing metadata for the RPC.
method
src.python.grpcio.grpc.aio._base_server.ServicerContext.write(message:ResponseType) -> NoneWrites one message to the RPC.
class
src.python.grpcio.grpc.aio._call.CallBase implementation of client RPC Call object.
class
src.python.grpcio.grpc.aio._call.StreamStreamCallObject for managing stream-stream RPC calls.
class
src.python.grpcio.grpc.aio._call.StreamUnaryCallObject for managing stream-unary RPC calls.
class
src.python.grpcio.grpc.aio._call.UnaryStreamCallObject for managing unary-stream RPC calls.
class
src.python.grpcio.grpc.aio._call.UnaryUnaryCallObject for managing unary-unary RPC calls.
class
src.python.grpcio.grpc.aio._interceptor.ClientCallDetailsDescribes an RPC to be invoked.
class
src.python.grpcio.grpc.aio._interceptor.ClientInterceptorBase class used for all Aio Client Interceptor classes
class
src.python.grpcio.grpc.aio._interceptor.InterceptedCallBase implementation for all intercepted call arities.
class
src.python.grpcio.grpc.aio._interceptor.ServerInterceptorAffords intercepting incoming RPCs on the service-side.
class
src.python.grpcio.grpc.aio._interceptor.StreamStreamClientInterceptorAffords intercepting stream-stream invocations.
class
src.python.grpcio.grpc.aio._interceptor.StreamUnaryClientInterceptorAffords intercepting stream-unary invocations.
class
src.python.grpcio.grpc.aio._interceptor.UnaryStreamClientInterceptorAffords intercepting unary-stream invocations.
class
src.python.grpcio.grpc.aio._interceptor.UnaryUnaryCallResponseFinal UnaryUnaryCall class finished with a response.
class
src.python.grpcio.grpc.aio._interceptor.UnaryUnaryClientInterceptorAffords intercepting unary-unary invocations.
method
src.python.grpcio.grpc.aio._metadata.Metadata.delete_all(key:MetadataKey) -> NoneDelete all mappings for <key>.
class
src.python.grpcio.grpc.aio._server.ServerServes RPCs.
method
src.python.grpcio.grpc.aio._server.Server.add_generic_rpc_handlers(generic_rpc_handlers:Sequence[grpc.GenericRpcHandler]) -> NoneRegisters GenericRpcHandlers with this Server.
method
src.python.grpcio.grpc.aio._server.Server.add_insecure_port(address:str) -> intOpens an insecure port for accepting RPCs.
method
src.python.grpcio.grpc.aio._server.Server.add_secure_port(address:str, server_credentials:grpc.ServerCredentials) -> intOpens a secure port for accepting RPCs.
method
src.python.grpcio.grpc.aio._server.Server.start() -> NoneStarts this Server.
method
src.python.grpcio.grpc.aio._server.Server.stop(grace:Optional[float]) -> NoneStops this Server.
method
src.python.grpcio.grpc.aio._server.Server.wait_for_termination(timeout:Optional[float]=None) -> boolBlock current coroutine until the server stops.
class
src.python.grpcio.grpc.beta.interfaces.ServerServices RPCs.
method
src.python.grpcio.grpc.beta.interfaces.Server.stop(grace)Stops this Server's service of RPCs.
class
src.python.grpcio.grpc.experimental.ChannelOptionsIndicates a channel option unique to gRPC Python.
class
src.python.grpcio.grpc.experimental.ExperimentalApiWarningA warning that an API is experimental.
class
src.python.grpcio.grpc.framework.common.cardinality.CardinalityDescribes the streaming semantics of an RPC method.
class
src.python.grpcio.grpc.framework.foundation.abandonment.AbandonedIndicates that some computation is being abandoned.
class
src.python.grpcio.grpc.framework.foundation.callable_util.OutcomeA sum type describing the outcome of some call.
class
src.python.grpcio.grpc.framework.foundation.future.TimeoutErrorIndicates that a particular call timed out.
method
src.python.grpcio.grpc.framework.foundation.stream.Consumer.consume(value)Accepts a value.
class
src.python.grpcio.grpc.framework.interfaces.base.base.OperationContextProvides operation-related information and action.
class
src.python.grpcio.grpc.framework.interfaces.base.base.OutcomeThe outcome of an operation.
class
src.python.grpcio.grpc.framework.interfaces.base.base.Outcome.KindWays in which an operation can terminate.
class
src.python.grpcio.grpc.framework.interfaces.base.base.ServicerInterface for service implementations.
method
src.python.grpcio.grpc.framework.interfaces.base.base.Servicer.service(group, method, context, output_operator)Services an operation.
class
src.python.grpcio.grpc.framework.interfaces.face.face.AbortionA value describing RPC abortion.
class
src.python.grpcio.grpc.framework.interfaces.face.face.Abortion.KindTypes of RPC abortion.
class
src.python.grpcio.grpc.framework.interfaces.face.face.AbortionErrorCommon super type for exceptions indicating RPC abortion.
class
src.python.grpcio.grpc.framework.interfaces.face.face.CallInvocation-side utility object for an RPC.
class
src.python.grpcio.grpc.framework.interfaces.face.face.CancellationErrorIndicates that an RPC has been cancelled.
class
src.python.grpcio.grpc.framework.interfaces.face.face.ExpirationErrorIndicates that an RPC has expired ("timed out").
class
src.python.grpcio.grpc.framework.interfaces.face.face.GenericStubAffords RPC invocation via generic methods.
class
src.python.grpcio.grpc.framework.interfaces.face.face.MultiMethodImplementationA general type able to service many methods.
class
src.python.grpcio.grpc.framework.interfaces.face.face.NetworkErrorIndicates that some error occurred on the network.
class
src.python.grpcio.grpc.framework.interfaces.face.face.RpcContextProvides RPC-related information and action.
method
src.python.grpcio.grpc.framework.interfaces.face.face.RpcContext.cancel()Cancels the RPC.
class
src.python.grpcio.grpc.framework.interfaces.face.face.ServicerContextA context object passed to method implementations.
class
src.python.grpcio_channelz.grpc_channelz.v1._servicer.ChannelzServicerServicer handling RPCs for service statuses.
func
src.python.grpcio_csds.grpc_csds.add_csds_servicer(server)Register CSDS servicer to a server.
method
src.python.grpcio_health_checking.grpc_health.v1._async.HealthServicer.set(service:str, status:_health_pb2.HealthCheckResponse.ServingStatus) -> NoneSets the status of a service.
class
src.python.grpcio_health_checking.grpc_health.v1.health.HealthServicerServicer handling RPCs for service statuses.
class
src.python.grpcio_observability.grpc_observability._observability.ExporterAbstract base class for census data exporters.
class
src.python.grpcio_observability.grpc_observability._observability.StatsDataA data class representing stats data.
class
src.python.grpcio_observability.grpc_observability._observability.TracingDataA data class representing tracing data.
class
src.python.grpcio_observability.grpc_observability._open_census_exporter.StackDriverAsyncTransportWrapper class used to pass wait_period.
class
src.python.grpcio_reflection.grpc_reflection.v1alpha._async.ReflectionServicerServicer handling RPCs for service statuses.
class
src.python.grpcio_reflection.grpc_reflection.v1alpha._base.BaseReflectionServicerBase class for reflection servicer.
class
src.python.grpcio_reflection.grpc_reflection.v1alpha.reflection.ReflectionServicerServicer handling RPCs for service statuses.
class
src.python.grpcio_status.status_commands.PreprocessCommand to copy LICENSE from root directory.
class
src.python.grpcio_testing.grpc_testing.ServerA server with which to test a system that services RPCs.
class
src.python.grpcio_testing.grpc_testing.TimeA simulation of time.
method
src.python.grpcio_testing.grpc_testing.Time.sleep_until(time)Blocks until some test time.
method
src.python.grpcio_testing.grpc_testing.Time.time()Accesses the current test time.
class
src.python.grpcio_testing.testing_commands.PreprocessCommand to copy LICENSE from root directory.
class
src.python.grpcio_tests.commands.BuildPyCustom project build command.
class
src.python.grpcio_tests.commands.TestLiteCommand to run tests without fetching or building anything.
class
src.python.grpcio_tests.commands.TestPy3OnlyCommand to run tests for Python 3+ features.
この情報について
掲載しているシグネチャは grpc/grpc の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。