{"id":27260,"library":"protoc-wheel-0","title":"protoc-wheel-0","description":"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.","status":"active","version":"30.2","language":"python","source_language":"en","source_url":"https://github.com/protocolbuffers/protobuf","tags":["protobuf","protoc","compiler","grpc"],"install":[{"cmd":"pip install protoc-wheel-0==30.2","lang":"bash","label":"Install specific version"}],"dependencies":[],"imports":[{"note":"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.","wrong":"","symbol":"main","correct":"No Python import; use CLI: protoc"}],"quickstart":{"code":"# After installation, protoc is available as a command-line tool.\n# Example: generate Python code from .proto file\n# Create a sample proto file first: echo 'syntax = \"proto3\"; message Test { string name = 1; }' > test.proto\nimport subprocess\nsubprocess.run(['protoc', '--python_out=.', 'test.proto'], check=True)\nprint('Generated test_pb2.py')","lang":"python","description":"Demonstrates using protoc via subprocess after pip install."},"warnings":[{"fix":"Use subprocess.run(['protoc', ...]) or shell call.","message":"protoc-wheel-0 provides a protoc binary, not a Python module. Do not attempt to import it in Python code; use subprocess or shell commands.","severity":"gotcha","affected_versions":"all"},{"fix":"Switch to grpcio-tools (which includes protoc) or download official protoc from https://github.com/protocolbuffers/protobuf/releases.","message":"The 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.","severity":"deprecated","affected_versions":"all"},{"fix":"Install matching protobuf: pip install protobuf==30.2","message":"The 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).","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0':4 '30.2':16 'allow':29 'binari':22 'buffer':12 'compil':13,48 'depend':27 'distribut':8 'download':35 'easi':30 'github':37 'grpc':49 'instal':31 'match':43 'need':33 'packag':18 'platform':26 'platform-depend':25 'protobuf':44,46 'protoc':2,14,21,47 'protoc-wheel':1 'protocol':11 'provid':19 'python':6 'regular':41 'releas':45 'updat':40 'version':15 'wheel':3,7,28 'without':32","created_at":"2026-05-01T17:45:19.864074+00:00","updated_at":"2026-05-01T17:45:19.864074+00:00","problems":{"verify_error":"no import statement found"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"protoc","cli_version":"libprotoc 30.2","type":"library","homepage":"https://gitlab.com/dfritzsche/create-protoc-wheel","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/protoc-wheel-0/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"skip","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-06","install_tag":null}}