mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
170 lines
3.2 KiB
170 lines
3.2 KiB
6 years ago
|
gRPC
|
||
6 years ago
|
=============
|
||
|
|
||
|
.. module:: grpc
|
||
|
|
||
6 years ago
|
Tutorial
|
||
|
--------
|
||
|
|
||
|
If you want to see gRPC in action first, visit the `Python Quickstart <https://grpc.io/docs/quickstart/python.html>`_.
|
||
|
Or, if you would like dive in with more extensive usage of gRPC Python, check `gRPC Basics - Python <https://grpc.io/docs/tutorials/basic/python.html>`_ out.
|
||
|
|
||
|
|
||
|
Example
|
||
|
-------
|
||
|
|
||
|
Go to `gRPC Python Examples <https://github.com/grpc/grpc/tree/master/examples/python>`_
|
||
|
|
||
|
|
||
|
Module Contents
|
||
|
---------------
|
||
|
|
||
6 years ago
|
Create Client
|
||
6 years ago
|
^^^^^^^^^^^^^
|
||
6 years ago
|
|
||
|
.. autofunction:: insecure_channel
|
||
|
.. autofunction:: secure_channel
|
||
|
.. autofunction:: intercept_channel
|
||
|
|
||
|
|
||
|
Create Client Credentials
|
||
6 years ago
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
6 years ago
|
|
||
|
.. autofunction:: ssl_channel_credentials
|
||
|
.. autofunction:: metadata_call_credentials
|
||
|
.. autofunction:: access_token_call_credentials
|
||
|
.. autofunction:: composite_call_credentials
|
||
|
.. autofunction:: composite_channel_credentials
|
||
|
|
||
|
|
||
|
Create Server
|
||
6 years ago
|
^^^^^^^^^^^^^
|
||
6 years ago
|
|
||
|
.. autofunction:: server
|
||
|
|
||
|
|
||
|
Create Server Credentials
|
||
6 years ago
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
6 years ago
|
|
||
|
.. autofunction:: ssl_server_credentials
|
||
|
.. autofunction:: ssl_server_certificate_configuration
|
||
|
.. autofunction:: dynamic_ssl_server_credentials
|
||
|
|
||
|
|
||
|
RPC Method Handlers
|
||
6 years ago
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
6 years ago
|
|
||
|
.. autofunction:: unary_unary_rpc_method_handler
|
||
|
.. autofunction:: unary_stream_rpc_method_handler
|
||
|
.. autofunction:: stream_unary_rpc_method_handler
|
||
|
.. autofunction:: stream_stream_rpc_method_handler
|
||
|
.. autofunction:: method_handlers_generic_handler
|
||
|
|
||
|
|
||
|
Channel Ready Future
|
||
6 years ago
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
6 years ago
|
|
||
|
.. autofunction:: channel_ready_future
|
||
|
|
||
|
|
||
|
Channel Connectivity
|
||
6 years ago
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
6 years ago
|
|
||
|
.. autoclass:: ChannelConnectivity
|
||
|
|
||
|
|
||
|
gRPC Status Code
|
||
6 years ago
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
6 years ago
|
|
||
|
.. autoclass:: StatusCode
|
||
|
|
||
|
|
||
|
Channel Object
|
||
6 years ago
|
^^^^^^^^^^^^^^
|
||
6 years ago
|
|
||
|
.. autoclass:: Channel
|
||
|
|
||
|
|
||
|
Server Object
|
||
6 years ago
|
^^^^^^^^^^^^^
|
||
6 years ago
|
|
||
|
.. autoclass:: Server
|
||
|
|
||
|
|
||
|
Authentication & Authorization Objects
|
||
6 years ago
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
6 years ago
|
|
||
|
.. autoclass:: ChannelCredentials
|
||
|
.. autoclass:: CallCredentials
|
||
|
.. autoclass:: AuthMetadataContext
|
||
|
.. autoclass:: AuthMetadataPluginCallback
|
||
|
.. autoclass:: AuthMetadataPlugin
|
||
|
.. autoclass:: ServerCredentials
|
||
|
.. autoclass:: ServerCertificateConfiguration
|
||
|
|
||
|
|
||
|
gRPC Exceptions
|
||
6 years ago
|
^^^^^^^^^^^^^^^
|
||
6 years ago
|
|
||
|
.. autoexception:: RpcError
|
||
|
|
||
|
|
||
|
Shared Context
|
||
6 years ago
|
^^^^^^^^^^^^^^
|
||
6 years ago
|
|
||
|
.. autoclass:: RpcContext
|
||
|
|
||
|
|
||
|
Client-Side Context
|
||
6 years ago
|
^^^^^^^^^^^^^^^^^^^^^^^
|
||
6 years ago
|
|
||
|
.. autoclass:: Call
|
||
|
|
||
|
|
||
|
Client-Side Interceptor
|
||
6 years ago
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
6 years ago
|
|
||
|
.. autoclass:: ClientCallDetails
|
||
|
.. autoclass:: UnaryUnaryClientInterceptor
|
||
|
.. autoclass:: UnaryStreamClientInterceptor
|
||
|
.. autoclass:: StreamUnaryClientInterceptor
|
||
|
.. autoclass:: StreamStreamClientInterceptor
|
||
|
|
||
|
|
||
|
Service-Side Context
|
||
6 years ago
|
^^^^^^^^^^^^^^^^^^^^
|
||
6 years ago
|
|
||
|
.. autoclass:: ServicerContext
|
||
|
|
||
|
|
||
|
Service-Side Handler
|
||
6 years ago
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
6 years ago
|
|
||
|
.. autoclass:: RpcMethodHandler
|
||
|
.. autoclass:: HandlerCallDetails
|
||
|
.. autoclass:: GenericRpcHandler
|
||
|
.. autoclass:: ServiceRpcHandler
|
||
|
|
||
|
|
||
|
Service-Side Interceptor
|
||
6 years ago
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
||
6 years ago
|
|
||
|
.. autoclass:: ServerInterceptor
|
||
|
|
||
|
|
||
6 years ago
|
Multi-Callable Interfaces
|
||
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
6 years ago
|
|
||
|
.. autoclass:: UnaryUnaryMultiCallable
|
||
|
.. autoclass:: UnaryStreamMultiCallable
|
||
|
.. autoclass:: StreamUnaryMultiCallable
|
||
|
.. autoclass:: StreamStreamMultiCallable
|
||
|
|
||
|
|
||
6 years ago
|
Future Interfaces
|
||
|
^^^^^^^^^^^^^^^^^
|
||
6 years ago
|
|
||
|
.. autoexception:: FutureTimeoutError
|
||
|
.. autoexception:: FutureCancelledError
|
||
|
.. autoclass:: Future
|