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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59c92dd80154fd270b35b7beb77349e7926e9e6c969b921dc7646291f3f446e2 |
|
MD5 | 19d3969437c520ec4980aa6d1dc2133e |
|
BLAKE2b-256 | 823813e5b08c45063103b09f35570617e5861eb086ce79d74c9e215d74e0ea57 |