Registry / devops / protoc-gen-connect-python

protoc-gen-connect-python

JSON →
library0.9.0pypypi✓ verified 82d ago

Code generator for connect-python, generating Python gRPC‑compatible client and server stubs from protobuf definitions. Current version 0.9.0, requires Python ≥3.10. Released as part of the connectrpc project.

pip install protoc-gen-connect-python
INSTALL
IMPORT
SIG · PROTOC-GEN-CONNECT
P
protoc-gen-connect-python
devopspythonv0.9.0
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.

protoc_gen_connectrpc
import protoc_gen_connectrpc
from connectrpc import *

Minimal client usage after generating stubs with protoc-gen-connect-python.

import os from connectrpc.conformance import ConformanceServiceClient from connectrpc.conformance.v1 import conformance_pb2 client = ConformanceServiceClient( base_url=os.environ.get('CONFORMANCE_URL', 'http://localhost:8080'), ) req = conformance_pb2.UnaryRequest(name='hello') resp = client.unary(req) print(resp.message)
Debug
Known issues
breakingGenerated imports changed from connectrpc.conformance.v1.conformance_connect to connectrpc.conformance.v1.conformance_pb2_connect in v0.9.0.
fix
Update import statements to use the new module structure.
affects: >=0.9.0
gotchaprotoc-gen-connect-python generates files into the same output directory as protobuf stubs; must use --connect-python_out in protoc invocation.
fix
Ensure protoc command includes --connect-python_out=. in addition to --python_out and --grpc_python_out.
affects: all
deprecatedThe old connectrpc.conformance.v1.conformance_connect module is deprecated in favor of the _pb2_connect suffix.
fix
Regenerate stubs and update imports to use the new _pb2_connect modules.
affects: >=0.9.0
Upgrade
Version history
0.9.0latest on PyPI · released Mar 19, 2026
Audit
Dependencies
protobufrequiredRequired for generated code and runtime
grpciooptionalOptional: if using gRPC transport
Agent activity
4 hits · last 30 days
node
4
Resources
protoc-gen-connect-python — pip install protoc-gen-connect-python · libregistry