grpckit / omniproto

Omniproto makes generating code from your protorepo easy
MIT License
9 stars 4 forks source link

Generate python grpc service stub file #10

Open psn6701 opened 3 years ago

psn6701 commented 3 years ago

docker run -v $(pwd):/workspace --rm grpckit/omniproto

how can i generate the ExampleService_pb2_grpc.py normal py files are getting generated.

Manually it is done using something like python -m ../grpc_tools.protoc -I../../protos --python_out=. --grpc_python_out=. ../../protos/helloworld.proto but cannot find the same using omniproto.yaml

For golang i have fixed by creating docker image by adding RUN go get -u google.golang.org/grpc/cmd/protoc-gen-go-grpc this generates the go grpc file. for java plugin is already so that works fine @mhamrah

mhamrah commented 3 years ago

See the readme- in your omniproto file you can set the file and the language.