oaas编译器
oaas_grpc_compiler的Python项目详细描述
oaas-grpc-compiler编译带有类型信息的gRPC proto文件 可以使用mypy,格式为black,使用 在其中生成源的自定义模块的可能性。在
add_Type_to_server函数作为 静态方法:Type.add_to_server,因为OaaS就是这样做的 弄清楚这是gRPC服务,还是simple服务。在
使用
Usage: oaas-grpc-compiler [OPTIONS] GRPC_FILES Options: --module TEXT The module of the python package to generate --output TEXT Output folder where to write the files --help Show this message and exit.
示例
原型文件test.proto:
^{pr2}$调用:
oaas-grpc-compiler --module some.custom.module --output some/custom/module test.proto
- 项目
标签: