Elefhead
Elefhead

Reputation: 160

Creating grpc server and client python interfaces from URL

I was wondering if it is possible to generate the interfaces from a git repository location instead of relative directory locations.

I tried

python -m grpc.tools.protoc \
    --proto_path=https://github..../../protos/ \
    --grpc_python_out=. https://github..../..protos/required.proto

but it doesn't work with the error https://github..../../protos/required.proto: No such file or directory exists

Upvotes: 0

Views: 292

Answers (1)

Richard Belleville
Richard Belleville

Reputation: 1620

This feature is not supported in any protobuf implementation I know of. You'll have to download the proto files indicated somehow as well as all of their dependencies.

Upvotes: 1

Related Questions