【问题标题】:Creating grpc server and client python interfaces from URL从 URL 创建 grpc 服务器和客户端 python 接口
【发布时间】:2021-08-28 17:09:47
【问题描述】:

我想知道是否可以从 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

【问题讨论】:

    标签: grpc grpc-python


    【解决方案1】:

    我知道的任何 protobuf 实现都不支持此功能。您必须以某种方式下载指定的 proto 文件以及它们的所有依赖项。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-06-02
      • 2020-02-18
      • 2020-09-09
      • 2019-02-28
      • 2021-04-10
      • 2020-04-03
      • 2022-06-16
      • 1970-01-01
      相关资源
      最近更新 更多