Skip to content

Commit

Permalink
README.md: update proto generation command (#17)
Browse files Browse the repository at this point in the history
Note this also adds `--pyi_out=.` to generate Python pyi stub for dev
convenience.
  • Loading branch information
sergiitk authored Jan 5, 2024
1 parent ea4f7eb commit fed0e62
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,9 @@ python3 -m venv venv
pip install -r requirements.lock

# Generate protos
python -m grpc_tools.protoc --proto_path=../../../ \
--python_out=. --grpc_python_out=. \
src/proto/grpc/testing/empty.proto \
src/proto/grpc/testing/messages.proto \
src/proto/grpc/testing/test.proto
python -m grpc_tools.protoc --proto_path=. \
--python_out=. --grpc_python_out=. --pyi_out=. \
protos/grpc/testing/*.proto
```

# Basic usage
Expand Down

0 comments on commit fed0e62

Please sign in to comment.