grpc-python-hello
python helloworld to grpc asyncio based on gRPC github repo https://github.com/grpc/grpc
"hello, world" Python example:
grpc/examples/python/helloworld
This code's documentation lives on the grpc.io site.
installation
Windows 10
python -m pip install grpcio
python -m pip install grpcio-tools
python -m pip install protobuf
linux/macos/wsl
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
DevOps
code gen
python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. helloworld.proto
run client/server
python greeter_server.py
python greeter_client.py
run client/server asyncio
python async_greeter_server.py
python async_greeter_client.py