grpclib/example
Vladimir Magamedov 6a07b74b67 Refactored README.rst 2019-04-28 20:31:53 +03:00
..
_reference Added "tracing" examples with events usage, modernized other examples 2019-03-31 17:59:28 +03:00
helloworld Refactored README.rst 2019-04-28 20:31:53 +03:00
reflection Implemented graceful_exit context-manager 2019-03-12 16:16:36 +02:00
streaming Added "tracing" examples with events usage, modernized other examples 2019-03-31 17:59:28 +03:00
tracing Added "tracing" examples with events usage, modernized other examples 2019-03-31 17:59:28 +03:00
README.rst Updated example's README.rst 2017-11-10 00:59:26 +02:00

README.rst

Assuming you are in the ``example`` 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=. --python_grpc_out=. helloworld/helloworld.proto