Compile gRPC service for Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install grpcio dependency and grpcio-tools used to generate stubs | |
python -m pip install grpcio grpcio-tools | |
# Generate stubs from protbuf file | |
python -m grpc_tools.protoc \ | |
-I../../protos \ | |
--python_out=. \ | |
--grpc_python_out=. ../../protos/foo.proto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment