HomeDocs
DocsCommunityTestimonialsUsersGitHubTwitterBlogJobsTermsPrivacyCookies
TermsPrivacyCookies
Hey! These docs are for version 2.8, which is no longer officially supported. Click here for the latest version, 2.18!


Options related to the Protobuf Python backend.

See [Protobuf and gRPC](🔗).

Config section: <span style="color: purple"><code>[python-protobuf]</code></span>

## Basic options

<div style="color: purple"> <h3><code>runtime_dependencies</code></h3> <code>--python-protobuf-runtime-dependencies=&quot;[&lt;target_option&gt;, &lt;target_option&gt;, ...]&quot;</code><br> <code>PANTS_PYTHON_PROTOBUF_RUNTIME_DEPENDENCIES</code><br> </div> <div style="padding-left: 2em;"> <span style="color: green">default: <code>[]</code></span>

<br>

A list of addresses to `python_requirement` targets for the runtime dependencies needed for generated Python code to work. For example, `['3rdparty/python:protobuf', '3rdparty/python:grpcio']`. These dependencies will be automatically added to every `protobuf_sources` target

</div> <br>

<div style="color: purple"> <h3><code>mypy_plugin</code></h3> <code>--[no-]python-protobuf-mypy-plugin</code><br> <code>PANTS_PYTHON_PROTOBUF_MYPY_PLUGIN</code><br> </div> <div style="padding-left: 2em;"> <span style="color: green">default: <code>False</code></span>

<br>

Use the `mypy-protobuf` plugin (https://github.com/dropbox/mypy-protobuf) to also generate .pyi type stubs.

</div> <br>

## Advanced options

None

## Deprecated options

None