Merge pull request #17194 from lidizheng/update-documentation

Update Python documentation
pull/17196/head
Lidi Zheng 6 years ago committed by GitHub
commit c109bec4c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 62
      doc/python/sphinx/grpc.rst
  2. 2
      doc/python/sphinx/index.rst

@ -1,10 +1,26 @@
API Reference gRPC
============= =============
.. module:: grpc .. module:: grpc
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
---------------
Create Client Create Client
------------- ^^^^^^^^^^^^^
.. autofunction:: insecure_channel .. autofunction:: insecure_channel
.. autofunction:: secure_channel .. autofunction:: secure_channel
@ -12,7 +28,7 @@ Create Client
Create Client Credentials Create Client Credentials
------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^
.. autofunction:: ssl_channel_credentials .. autofunction:: ssl_channel_credentials
.. autofunction:: metadata_call_credentials .. autofunction:: metadata_call_credentials
@ -22,13 +38,13 @@ Create Client Credentials
Create Server Create Server
------------- ^^^^^^^^^^^^^
.. autofunction:: server .. autofunction:: server
Create Server Credentials Create Server Credentials
------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^
.. autofunction:: ssl_server_credentials .. autofunction:: ssl_server_credentials
.. autofunction:: ssl_server_certificate_configuration .. autofunction:: ssl_server_certificate_configuration
@ -36,7 +52,7 @@ Create Server Credentials
RPC Method Handlers RPC Method Handlers
-------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^
.. autofunction:: unary_unary_rpc_method_handler .. autofunction:: unary_unary_rpc_method_handler
.. autofunction:: unary_stream_rpc_method_handler .. autofunction:: unary_stream_rpc_method_handler
@ -46,37 +62,37 @@ RPC Method Handlers
Channel Ready Future Channel Ready Future
-------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^
.. autofunction:: channel_ready_future .. autofunction:: channel_ready_future
Channel Connectivity Channel Connectivity
-------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^
.. autoclass:: ChannelConnectivity .. autoclass:: ChannelConnectivity
gRPC Status Code gRPC Status Code
-------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^
.. autoclass:: StatusCode .. autoclass:: StatusCode
Channel Object Channel Object
-------------- ^^^^^^^^^^^^^^
.. autoclass:: Channel .. autoclass:: Channel
Server Object Server Object
------------- ^^^^^^^^^^^^^
.. autoclass:: Server .. autoclass:: Server
Authentication & Authorization Objects Authentication & Authorization Objects
-------------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. autoclass:: ChannelCredentials .. autoclass:: ChannelCredentials
.. autoclass:: CallCredentials .. autoclass:: CallCredentials
@ -88,25 +104,25 @@ Authentication & Authorization Objects
gRPC Exceptions gRPC Exceptions
--------------- ^^^^^^^^^^^^^^^
.. autoexception:: RpcError .. autoexception:: RpcError
Shared Context Shared Context
-------------- ^^^^^^^^^^^^^^
.. autoclass:: RpcContext .. autoclass:: RpcContext
Client-Side Context Client-Side Context
----------------------- ^^^^^^^^^^^^^^^^^^^^^^^
.. autoclass:: Call .. autoclass:: Call
Client-Side Interceptor Client-Side Interceptor
------------------------------------------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. autoclass:: ClientCallDetails .. autoclass:: ClientCallDetails
.. autoclass:: UnaryUnaryClientInterceptor .. autoclass:: UnaryUnaryClientInterceptor
@ -116,13 +132,13 @@ Client-Side Interceptor
Service-Side Context Service-Side Context
-------------------- ^^^^^^^^^^^^^^^^^^^^
.. autoclass:: ServicerContext .. autoclass:: ServicerContext
Service-Side Handler Service-Side Handler
------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. autoclass:: RpcMethodHandler .. autoclass:: RpcMethodHandler
.. autoclass:: HandlerCallDetails .. autoclass:: HandlerCallDetails
@ -131,13 +147,13 @@ Service-Side Handler
Service-Side Interceptor Service-Side Interceptor
------------------------ ^^^^^^^^^^^^^^^^^^^^^^^^
.. autoclass:: ServerInterceptor .. autoclass:: ServerInterceptor
Multi-Callable Multi-Callable Interfaces
------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^
.. autoclass:: UnaryUnaryMultiCallable .. autoclass:: UnaryUnaryMultiCallable
.. autoclass:: UnaryStreamMultiCallable .. autoclass:: UnaryStreamMultiCallable
@ -145,8 +161,8 @@ Multi-Callable
.. autoclass:: StreamStreamMultiCallable .. autoclass:: StreamStreamMultiCallable
Future Future Interfaces
---------------- ^^^^^^^^^^^^^^^^^
.. autoexception:: FutureTimeoutError .. autoexception:: FutureTimeoutError
.. autoexception:: FutureCancelledError .. autoexception:: FutureCancelledError

@ -9,7 +9,7 @@ API Reference
.. toctree:: .. toctree::
:caption: Contents: :caption: Contents:
api grpc
grpc_health_checking grpc_health_checking
grpc_reflection grpc_reflection
grpc_testing grpc_testing

Loading…
Cancel
Save