从 URL 创建 grpc 服务器和客户端 python 接口
Creating grpc server and client python interfaces from URL
我想知道是否可以从 git 存储库位置而不是相对目录位置生成接口。
我试过了
python -m grpc.tools.protoc \
--proto_path=https://github..../../protos/ \
--grpc_python_out=. https://github..../..protos/required.proto
但它无法处理错误 https://github..../../protos/required.proto: No such file or directory exists
我所知道的任何 protobuf 实现都不支持此功能。您必须下载以某种方式指示的原型文件及其所有依赖项。
我想知道是否可以从 git 存储库位置而不是相对目录位置生成接口。
我试过了
python -m grpc.tools.protoc \
--proto_path=https://github..../../protos/ \
--grpc_python_out=. https://github..../..protos/required.proto
但它无法处理错误 https://github..../../protos/required.proto: No such file or directory exists
我所知道的任何 protobuf 实现都不支持此功能。您必须下载以某种方式指示的原型文件及其所有依赖项。