Doc from : https://medium.com/@coderviewer/simple-usage-of-grpc-with-python-f714d9f69daa
This repository contains a simple example of using gRPC (gRPC Remote Procedure Calls) with Python. The example demonstrates a basic client-server application where the server adds two numbers.
Follow the steps below to run the example on your local machine.
- Python (version 3.8 or higher)
- grpcio and grpcio-tools installed
pip install grpcio grpcio-toolspython -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. calculator.protopython server.pypython client.py