Python client-server demo using gRPC and protocol buffers
- Service defined in a helloworld.proto file.
- Server and client code generated with the protocol buffer compiler.
- Simple client and server implemented with Python gRPC API.
python3 -m venv env
. env/bin/activate
pip install -r requirements.txt
python -m grpc_tools.protoc \
-I. \
--python_out=. \
--grpc_python_out=. \
./helloworld.proto
python3 app/server.py
python3 app/client.py
pip install -r requirements_text.txt
py.test tests/