Make a python virtual environment
$ python3 -m venv .venv && source .venv/bin/activate
Install the grpcio-tools
package
$ pip install grpcio-tools
Install the googleapis-common-proto
package
$ pip install googleapis-common-protos
$ python -m grpc_tools.protoc -I $SRC_dIR --python_out=$DEST_DIR --grpc_python_out=. $SRC_DIR/$proto_file
- Generate stubs
$ make stubs
- Start client
$ make client
- Start server
$ make server
- Generate ssl certs
$ make gen_key
LoadBalancing gRPC blog