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.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d261f82b09c2f1debd7a31465a54780ddacfc475d84d7a4fec7406b3d59ffe4 |
|
MD5 | ba56091414acc7e6b1c9709293c31ffd |
|
BLAKE2b-256 | 1d43c83998b8e09824ca48f1c9c978f0ba9c333ff3497b9830e4065b2b67b8bf |