Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Protobuf Logo
Python Protoc Executable

PyPI packaged Protocol Buffers Compiler

A PyPI package providing a pip-installable protoc executable.

This package does not provide any Python code, it provides just the unaltered protoc executable. The versioning thus also follows the official versioning of protoc, and is different to the versioning of the protobuf runtime.

The difference of this package to protoc-wheel and protoc-wheel-0 is that those packages wrap the protoc in Python. Whereas this package provides just the protoc executable, without anything else. As a consequence you can directly call protoc after installing this package in your environment. This makes it perfect for providing the protoc executable wherever you need the actual thing to be available in your PATH, e.g. together with buf (if you do you might want to check out buf-exe as well).

Note that this project is not affiliated with or endorsed by Google or the Protobuf team. The -exe suffix in the name was chosen to ensure that the protoc name stays available, just in case there ever is going to be an official package.

Warning the redistribution process is not yet fully automated, as I am in the process of building the tooling. Currently only the latest protoc release is available, and it was created semi-manually with the scripts you currently see in the repository. The plan is to fully automate everything, and provide new protoc releases with 24 hours.

Usage

Simply use protoc as the executable in whatever process abstraction you are using, regardless of your operating system. The only requirement is that your PATH is set correctly so that the protoc (or protoc.exe on Windows) is found. For instance, you could use pip and a basic virtual environment:

# example.py
import subprocess
subprocess.check_call(["command", "-v", "protoc"])
subprocess.check_call(["protoc", "--version"])
cd /tmp
python -m venv venv
source venv/bin/activate
pip install protoc-exe
command -v protoc # /tmp/venv/bin/protoc
protoc --version  # libprotoc x.y[.z]
python example.py
# /tmp/venv/bin/protoc
# libprotoc x.y[.z]
rm -fr venv/

Note that the example uses a POSIX compliant shell, but it works on non-POSIX systems as well. Have a look at the GitHub Actions.

Metadata

Release files for protoc-exe 22.0rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for protoc-exe 22.0rc1
File
protoc_exe-22.0rc1-py2.py3-none-win_amd64.whl Python 3, Python 2 none Windows x86-64 Details
protoc_exe-22.0rc1-py2.py3-none-win32.whl Python 3, Python 2 none Windows x86-32 Details
protoc_exe-22.0rc1-py2.py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl Python 3, Python 2 none Linux glibc 2.17+ IBM System/390x Details
protoc_exe-22.0rc1-py2.py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl Python 3, Python 2 none Linux glibc 2.17+ PowerPC 64-le Details
protoc_exe-22.0rc1-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 2, Python 3 none Linux glibc 2.17+ ARM64 Details
protoc_exe-22.0rc1-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl Python 2, Python 3 none Linux glibc 2.5+ x86-64 Details
protoc_exe-22.0rc1-py2.py3-none-manylinux_2_5_i686.manylinux1_i686.whl Python 2, Python 3 none Linux glibc 2.5+ x86-32 Details
protoc_exe-22.0rc1-py2.py3-none-macosx_11_0_arm64.whl Python 3, Python 2 none macOS 11.0+ ARM64 Details
protoc_exe-22.0rc1-py2.py3-none-macosx_10_4_x86_64.whl Python 2, Python 3 none macOS 10.4+ x86-64 Details

Total release size: 20.0 MB

Release files / protoc_exe-22.0rc1-py2.py3-none-win_amd64.whl

Download URL protoc_exe-22.0rc1-py2.py3-none-win_amd64.whl
Size 2.7 MB
Tags Python 2 Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
fc404005d362faae5f2fb13544594eae18074f1aa8a375e97380d15d2ee77c2b
BLAKE2b-256 checksum
How to use checksums
aed9da1c43a2e7e86a0ca8fda702d26ad25237cf460f7558bc284929788af34d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / protoc_exe-22.0rc1-py2.py3-none-win32.whl

Download URL protoc_exe-22.0rc1-py2.py3-none-win32.whl
Size 2.7 MB
Tags Python 2 Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
2d66eb3d0e2968be070616185b6255fc85183511ab4b599739ac8565689b6234
BLAKE2b-256 checksum
How to use checksums
f834fe060554b893ce822ba23a1a9730ebdab4747e0e3bc9d8905a54f2c399af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / protoc_exe-22.0rc1-py2.py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl

Download URL protoc_exe-22.0rc1-py2.py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Size 2.8 MB
Tags Linux glibc 2.17+ IBM System/390x Python 2 Python 3
SHA-256 checksum
How to use checksums
28c92f2e2f55041acd964535ec7dc826c1076c8aab65b15a75095d09dfea9e21
BLAKE2b-256 checksum
How to use checksums
07ffbbce9a8c6c2f55d7290aa5d928eeadc38a72aab07b4f5f527303fd1cea1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / protoc_exe-22.0rc1-py2.py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl

Download URL protoc_exe-22.0rc1-py2.py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Size 2.1 MB
Tags Linux glibc 2.17+ PowerPC 64-le Python 2 Python 3
SHA-256 checksum
How to use checksums
70dcf4b806add8abbf979ddac3add317a1a963f7581a9ebfad05c69ed4d86c78
BLAKE2b-256 checksum
How to use checksums
0840887d15548d27c6f3d99a1d10b2eb85a96ed304035bf596f37fab55dae1c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / protoc_exe-22.0rc1-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL protoc_exe-22.0rc1-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.9 MB
Tags Linux glibc 2.17+ ARM64 Python 2 Python 3
SHA-256 checksum
How to use checksums
4a3cebb43dbd648a15919704fb33daf0b851d862e7f33cbbe15cd07a9322ad52
BLAKE2b-256 checksum
How to use checksums
f7823d5d9523e7497c25411e379744cf4cb60f08e4cbf2ae6e595a729f4a9da2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / protoc_exe-22.0rc1-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl

Download URL protoc_exe-22.0rc1-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Size 2.0 MB
Tags Linux glibc 2.5+ x86-64 Python 2 Python 3
SHA-256 checksum
How to use checksums
29fc83969958ec0e9f4802d8fb2f36e788174aaf00f5506d0cc32e11226ea24c
BLAKE2b-256 checksum
How to use checksums
010d71d5c0c8f03ed8a5965b32ee890fe9d5efb1e1090a5500039c251342f9ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / protoc_exe-22.0rc1-py2.py3-none-manylinux_2_5_i686.manylinux1_i686.whl

Download URL protoc_exe-22.0rc1-py2.py3-none-manylinux_2_5_i686.manylinux1_i686.whl
Size 2.2 MB
Tags Linux glibc 2.5+ x86-32 Python 2 Python 3
SHA-256 checksum
How to use checksums
e578d938aea08faf1fec8cb19f798ba129b0897caed91bd923d85a4a4aab0d37
BLAKE2b-256 checksum
How to use checksums
917e6d8601b986b23832aa0c0851d862f0ff2086338bd8be2770eef8aa0641d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / protoc_exe-22.0rc1-py2.py3-none-macosx_11_0_arm64.whl

Download URL protoc_exe-22.0rc1-py2.py3-none-macosx_11_0_arm64.whl
Size 1.8 MB
Tags Python 2 Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8d7dc89b1693209cb0c5071765f4d5c346b2628cbba2f7966f135959599ec093
BLAKE2b-256 checksum
How to use checksums
0c8493606755d983124dd77bde5feba1e6900c2fc1f99b0a3a599137ab75f0bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / protoc_exe-22.0rc1-py2.py3-none-macosx_10_4_x86_64.whl

Download URL protoc_exe-22.0rc1-py2.py3-none-macosx_10_4_x86_64.whl
Size 1.8 MB
Tags Python 2 Python 3 macOS 10.4+ x86-64
SHA-256 checksum
How to use checksums
6f01764d1d4e572e7d55e831e437ca1df66de94a53c235b7fd22a44e0ae1a8b0
BLAKE2b-256 checksum
How to use checksums
49a8d59f68327d928e288d5d8db2aec0b9f60c4bf6961f62be5b24c4ca1f5570
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release history Release notifications | RSS feed

This release

22.0rc1 This release

9 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page