grpclib/examples
Vladimir Magamedov 359dcaec87 Updated requirements, regenerated proto files with grpcio-tools==1.30.0, fixed typing 2020-06-24 02:57:17 +03:00
..
_reference Updated reference examples and benchmarks to use experimental asyncio support from grpcio 2020-06-05 23:19:44 +03:00
helloworld Updated requirements, regenerated proto files with grpcio-tools==1.30.0, fixed typing 2020-06-24 02:57:17 +03:00
mtls Reverted introduction of the new file extension 2020-06-03 21:09:27 +03:00
multiproc Updated requirements, regenerated proto files with grpcio-tools==1.30.0, fixed typing 2020-06-24 02:57:17 +03:00
reflection Covered examples and most user-facing apis with type annotations, many thanks and credit to @c-ryan747 for his work on #64 2019-05-21 17:39:23 +03:00
streaming Updated requirements, regenerated proto files with grpcio-tools==1.30.0, fixed typing 2020-06-24 02:57:17 +03:00
tracing Covered examples and most user-facing apis with type annotations, many thanks and credit to @c-ryan747 for his work on #64 2019-05-21 17:39:23 +03:00
README.rst Renamed protoc-gen-python_grpc script into protoc-gen-grpclib_python to follow grpc project naming 2020-06-05 22:57:11 +03:00

README.rst

Assuming you are in the ``examples`` directory.

To start the server:

.. code-block:: shell

    $ python3 -m helloworld.server

To run the client:

.. code-block:: shell

    $ python3 -m helloworld.client

To re-generate ``helloworld_pb2.py`` and ``helloworld_grpc.py`` files (already generated):

.. code-block:: shell

    $ python3 -m grpc_tools.protoc -I. --python_out=. --grpclib_python_out=. helloworld/helloworld.proto