Registry / serialization / protoc-wheel-0

protoc-wheel-0

JSON →
library30.2pypypiunverified

A Python wheel distribution of the Protocol Buffers compiler (protoc), version 30.2. This package provides the protoc binary as a platform-dependent wheel, allowing easy installation without needing to download from GitHub. It is updated regularly to match protobuf releases.

pip install protoc-wheel-0==30.2
INSTALL
IMPORT
SIG · PROTOC-WHEEL-0
P
protoc-wheel-0
serializationpythonv30.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

main
No Python import; use CLI: protoc
This package provides a command-line tool, not a Python module. Users often expect to import something like 'protoc' but there is no importable module.

Demonstrates using protoc via subprocess after pip install.

# After installation, protoc is available as a command-line tool. # Example: generate Python code from .proto file # Create a sample proto file first: echo 'syntax = "proto3"; message Test { string name = 1; }' > test.proto import subprocess subprocess.run(['protoc', '--python_out=.', 'test.proto'], check=True) print('Generated test_pb2.py')
protoc --version
Debug
Known issues
gotchaprotoc-wheel-0 provides a protoc binary, not a Python module. Do not attempt to import it in Python code; use subprocess or shell commands.
fix
Use subprocess.run(['protoc', ...]) or shell call.
affects: all
deprecatedThe protoc-wheel-0 package is a third-party wheel distribution. For official protoc binaries, consider downloading from GitHub releases or using the protobuf compiler included in the grpcio-tools package.
fix
Switch to grpcio-tools (which includes protoc) or download official protoc from https://github.com/protocolbuffers/protobuf/releases.
affects: all
gotchaThe version number of protoc-wheel-0 matches the protobuf release version (30.2). Ensure that the protoc version is compatible with the protobuf Python package you are using (e.g., protobuf==30.2).
fix
Install matching protobuf: pip install protobuf==30.2
affects: all
Upgrade
Version history
30.2latest on PyPI · released Apr 4, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
protoc-wheel-0 — pip install protoc-wheel-0 · libregistry