Contains a minimal working example for rolling gRPC in Python.
Derived from: basic-grpc-python and updated to Python 3 with some example data relevant to my current work.
For more details: blog post.
git clone https://github.com/exponential-decay/basic-grpc-python
cd basic-grpc-python
pip install -r requirements.txt
python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. publish.proto
python server.py
python client.py
basic-grpc-python/
├── datum.py # module containing a function
|
├── publish.proto # protobuf definition file
|
├── publish_pb2_grpc.py # generated class for server/client
├── publish_pb2.py # generated class for message
|
├── server.py # a server to expose the function
└── client.py # a sample client