grpclib/examples
Denis Otkidach db299aa324 Update auto-generated *_pb2.py files 2021-08-24 08:19:15 +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 Update auto-generated *_pb2.py files 2021-08-24 08:19:15 +03:00
mtls Added context-manager protocol to the Channel class; closes #114 2020-07-22 01:55:12 +03:00
multiproc Update auto-generated *_pb2.py files 2021-08-24 08:19:15 +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 Update auto-generated *_pb2.py files 2021-08-24 08:19:15 +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