This release is a pre-release and may not be stable for production use.
Protobuf Protoc Bin
Repository of the Python package that ships protobuf's protoc compiler binary.
Use this package to install a specific version of protoc in your project, without having to figure out the installation externally.
This package is not maintained by or affiliated with the official protobuf group!
This repository does not host any binaries on itself. Instead, the binaries are downloaded from the official protobuf GitHub during package built or during installation from source.
How to install
The package is hosted on PyPi at https://pypi.org/project/protobuf-protoc-bin.
It can be installed via PIP as normal with:
pip install protobuf-protoc-bin
The wheels hosted on PyPi do contain a copy of the protoc releases.
You can also install this package directly from the Github source.
During an installation from source, protoc will be downloaded fresh from the official Protobuf releases:
pip install "git+https://github.com/RobertoRoos/protobuf-protoc-bin.git@<tag>"
(Replacing <tag> with a version like v27.3.)
If you prefer a user- or system-wide installation, where protoc is also added to PATH, you could install it with pipx instead:
pipx install protobuf-protoc-bin
(uv also offers such an installer through uvx.)
How to require
To require protoc only during a build script, include it in your pyproject.toml with:
[build-system]
requires = [..., "protobuf-protoc-bin==27.3"]
# ...
Or make it part of an additional install group in your regular environment (with the Poetry backend):
[tool.poetry.group.dev.dependencies]
protobuf-protoc-bin = "27.3"
How to develop
The following concerns only contributors to this package.
Adding a release
Each protobuf-protoc-bin release must correspond one-to-one to a Protobuf release.
To trigger a new release, simply push a new tag to the tip of the main branch that matches the protobuf release, including the leading 'v'.
An example of a valid tag is v27.3.
This means multiple package releases are made from the same commit.
However, the reference that triggers the CI build will affect the version assigned by setuptools_scm and therefor the protobuf release that's being packaged.
CI
A nightly workflow runs a script that looks for new Protoc releases and copies the tags into here, at the tip of the main branch.
So future releases should show up fully automatically.
Platform Tags
Relevant for a binary wheel release is the platform tag, to indicate to a client which wheel should be downloaded.
Separate from that is downloading the correct archive from the protoc release page.
Below is a table showing known examples and their correct values.
In setup.py there is logic to determine these values dynamically.
| Ubuntu (arm64) | Ubuntu (x64) | Windows (x64) | MacOS (x64) | |
|---|---|---|---|---|
| Github runner | ubuntu-24.04-arm | ubuntu-latest | windows-latest | macos-latest |
sysconfig.get_platform() |
linux-aarch64 | linux-x86_64 | win-amd64 | macosx-10.13-universal2 |
platform.system() |
Linux | Linux | Windows | Darwin |
platform.architecture() |
('64bit', 'ELF') | ('64bit', 'ELF') | ('64bit', 'WindowsPE') | ('64bit', '') |
| Wheel platform tag | manylinux_2_24_aarch64 | manylinux_2_24_x86_64 | win_amd64 | macosx_10_13_universal2 |
| Protoc archive name | protoc-vvv-linux-aarch_64.zip | protoc-vvv-linux-x86_64.zip | protoc-vvv-win64.zip | protoc-vvv-osx-x86_64.zip |
Testing
You can locally override the version that setuptools-scm detects by writing the environment variable SETUPTOOLS_SCM_PRETEND_VERSION.
This way you can easily mimic specific releases.
Metadata
Release files for protobuf-protoc-bin 37.0rc2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| protobuf_protoc_bin-37.0rc2.tar.gz | 11.2 kB | Without provenance | Details for protobuf_protoc_bin-37.0rc2.tar.gz |
Built distributions (wheels)
Total release size: 17.9 MB
Release files / protobuf_protoc_bin-37.0rc2.tar.gz
| Download URL | protobuf_protoc_bin-37.0rc2.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39c28cd7e8727872516abdf40859ba1622e5f7e106e85c2ca5d091a8d558613d
|
|
BLAKE2b-256 checksum How to use checksums |
5d2ea77e7cb4f14acfcc6fa7f35ecec0a44b343b02c4ae4d280e00fccc5f1e2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / protobuf_protoc_bin-37.0rc2-py2.py3-none-win_arm64.whl
| Download URL | protobuf_protoc_bin-37.0rc2-py2.py3-none-win_arm64.whl |
|---|---|
| Size | 3.7 MB |
| Tags | Python 2 Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
19a07bdd5d3ec485dd470c26cee4bda29a43fd318fa437aa6bcbd70cd762e332
|
|
BLAKE2b-256 checksum How to use checksums |
903181d7e6ffaa78c7ef6c78ece9072aedb64393ece9ca35243f5682e3a5dd4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / protobuf_protoc_bin-37.0rc2-py2.py3-none-win_amd64.whl
| Download URL | protobuf_protoc_bin-37.0rc2-py2.py3-none-win_amd64.whl |
|---|---|
| Size | 3.7 MB |
| Tags | Python 2 Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a0281fce6f44bd7f1011ae63ac835404940eb6e6d4f71a5cf49988b2a8c46e23
|
|
BLAKE2b-256 checksum How to use checksums |
7287e4cb0b5cc4d9b8650e362203657e2c0e2518f9659393606359a9ace9c8d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / protobuf_protoc_bin-37.0rc2-py2.py3-none-manylinux_2_24_x86_64.whl
| Download URL | protobuf_protoc_bin-37.0rc2-py2.py3-none-manylinux_2_24_x86_64.whl |
|---|---|
| Size | 3.8 MB |
| Tags | Linux glibc 2.24+ x86-64 Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
cd605445ff9e583dc820ec1031ef4c357383c11cda1a6fd58e85776dee311feb
|
|
BLAKE2b-256 checksum How to use checksums |
a0d8aaa36d5ffb7e7cafd722937d131fc89fa117acd7cdd52b79f517f97ce08b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / protobuf_protoc_bin-37.0rc2-py2.py3-none-manylinux_2_24_aarch64.whl
| Download URL | protobuf_protoc_bin-37.0rc2-py2.py3-none-manylinux_2_24_aarch64.whl |
|---|---|
| Size | 3.8 MB |
| Tags | Linux glibc 2.24+ ARM64 Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8b739fa48bed112040ce01b313477fba860a788a2abd9c58e51fbbfded9ab6c3
|
|
BLAKE2b-256 checksum How to use checksums |
eeae924bb908955f9a96dd85897b721cde952b39fba36e66f85494c47721f7d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / protobuf_protoc_bin-37.0rc2-py2.py3-none-macosx_10_13_universal2.whl
| Download URL | protobuf_protoc_bin-37.0rc2-py2.py3-none-macosx_10_13_universal2.whl |
|---|---|
| Size | 2.9 MB |
| Tags | Python 2 Python 3 macOS 10.13+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
74bb4e3b1427fcb9d6a009af651b05524b9487b56b7c597bfcbeb1dac8f6f340
|
|
BLAKE2b-256 checksum How to use checksums |
101690aa998c29b69b405363fe76a40f7e0dbd226513d632e1d846401b99ef80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for protobuf-protoc-bin 37.0rc2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.