python使用grpc
https://blog.csdn.net/weixin_33127753/article/details/88558402
python使用grpc也是需要有依赖库的支持
最终是要生成两个下面文件,这两个文件是被client和server调用的:
python生成***_pb2.py和***_pb2_grpc.py
#gRPC 的安装:
$ pip install grpcio
#安装 ProtoBuf 相关的 python 依赖库:
$ pip install protobuf
#安装 python grpc 的 protobuf 编译工具:
# 如果你已经安装了c++的protobuf工具,那么python的protobuf编译工具是可选的
$ pip install grpcio-tools