Skip to content

Instantly share code, notes, and snippets.

@fzankl
Created January 24, 2021 09:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save fzankl/11d0ca58feb433d1cc9f1583b8fbf3ac to your computer and use it in GitHub Desktop.
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