grpclib/examples
Vladimir Magamedov 502beb5f2f Updated requirements, regenerated proto files, updated minimum protobuf version 2023-10-02 21:09:43 +03:00
..
_reference Using new import name for the grpc.aio module in the examples/_reference 2020-11-23 22:19:51 +02:00
helloworld Updated requirements, regenerated proto files, updated minimum protobuf version 2023-10-02 21:09:43 +03:00
mtls Updated mtls example 2023-10-02 18:09:19 +03:00
multiproc Updated requirements, regenerated proto files, updated minimum protobuf version 2023-10-02 21:09:43 +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, updated minimum protobuf version 2023-10-02 21:09:43 +03:00
tracing Added context-manager protocol to the Channel class; closes #114 2020-07-22 01:55:12 +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