gRPC Poetry plugin
Project description
Poetry gRPC plugin
A Poetry plugin to run the Protocol Buffers compiler with gRPC support.
Installing the plugin
Requires Poetry version 1.2.0
or above
poetry self add poetry-grpc-plugin
Usage
To run it manually:
poetry help protoc
Usage:
protoc [options]
Options:
--proto_path[=PROTO_PATH] Base path for protobuf resources. [default: "<module_name>"]
--python_out[=PYTHON_OUT] Output path for generated protobuf wrappers. [default: "."]
--grpc_python_out[=GRPC_PYTHON_OUT] Output path for generated gRPC wrappers. Defaults to same path as python_out
--mypy_out[=MYPY_OUT] Output path for mypy type information for generated protobuf wrappers. Defaults to same path as python_out.
--mypy_grpc_out[=MYPY_GRPC_OUT] Output path for mypy type information for generated gRPC wrappers. Defaults to same path as grpc_python_out.
...
Run on poetry update
[tool.poetry-grpc-plugin]
Additional config
[tool.poetry-grpc-plugin]
proto_path = "protos" # Defaults to module name
python_out = "." # Defaults to .
Settings in pyproject.toml
will be used as defaults for manual execution with poetry protoc
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for poetry_grpc_plugin-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 138dc25e3370e7fcd830db909f759017ba164ed5cb55c3ec417fdce64f554f0a |
|
MD5 | 7466b3245e80fe11128afcd5d8c964e2 |
|
BLAKE2b-256 | b4367a650046bf0b4f34ae0cf4c633c2eb64242748d718707299390043c742c6 |