grpclib/examples
Vladimir Magamedov 898f4467d4 Added example of using ProcessPoolExecutor for CPU-intensive tasks 2019-05-22 21:31:56 +03:00
..
_reference Added bench.py script for benchmarking different servers using h2load tool 2019-05-01 20:00:11 +03:00
helloworld 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
multiproc Added example of using ProcessPoolExecutor for CPU-intensive tasks 2019-05-22 21:31:56 +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 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
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 "example" directory to "examples" 2019-04-28 20:31:53 +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=. --python_grpc_out=. helloworld/helloworld.proto