Following tutorial from https://www.velotio.com/engineering-blog/grpc-implementation-using-python
- create
.protofile - generate stubs with
python -m grpc_tools.protoc --proto_path=. ./unary.proto --python_out=. --grpc_python_out=. - you should see
unary_pb2.pyandunary_pb2_grpc.pycreated - create server file
- create client file
- run server
- run client
- same as above but generate stubs with
python -m grpc_tools.protoc --proto_path=. ./bidirectional.proto --python_out=. --grpc_python_out=.