Skip to content

Instantly share code, notes, and snippets.

Created January 24, 2021 09:22
What would you like to do?
Compile gRPC service for Python
# 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