$npx skillfedfor your agent

protoc-gen-connect-python

Code generator for connect-python

With conditionsPyPI NetworkingReleased Mar 2026255.2K downloads / moApache-2.0Platform wheel

Decision gist · record as of 2026-08-14

platform wheels — protoc_gen_connect_python-0.9.0-py3-none-macosx_11_0_arm64.whl · protoc_gen_connect_python-0.9.0-py3-none-macosx_11_0_x86_64.whl · protoc_gen_connect_python-0.9.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.musllinux_1_1_aarch64.whl
v0.9.0 · released 2026-03-19 · Python >=3.10

Yes, if you are building or consuming Connect RPC services in Python. The plugin is actively maintained, has no known vulnerabilities, supports Python 3.10 through 3.14, and eliminates manual code duplication between client and server definitions. Install it as a dev dependency in your buf-based code generation workflow. Not necessary if you are not using Connect or Protobuf.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later; used as a protoc plugin within a buf code generation workflow, not as a runtime library.
  • Medium install friction: distributed as pre-built wheels across multiple platforms (macOS arm64/x86_64, Linux aarch64/x86_64, Windows amd64/arm64), but requires Python 3.10 or later and is typically installed as a development dependency.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for both open-source and proprietary projects.

last release 2026-03-19 (148 days) · last repo commit 2026-08-12 · 142 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 255,199 downloads/mo, #8,483 on PyPI

Verify before relying

# Install as development dependency
uv add --dev protoc-gen-connect-python

# Configure in buf.gen.yaml:
# version: v2
# plugins:
#   - local: .venv/bin/protoc-gen-connectrpc
#     out: gen

# Run buf generate to produce Python code from .proto files
  • Whether the plugin works with both protobuf-py and google-protobuf implementations without additional configuration.
  • Performance characteristics and code generation speed for large Protobuf schemas.
  • Compatibility with existing gRPC Python codebases during migration to Connect.
  • What runtime dependencies the generated code requires beyond the protoc plugin itself.
Same gist for agents: .md · .json

What it is and what it does

protoc-gen-connect-python is a code generator plugin for the protoc compiler that transforms Protobuf service definitions into idiomatic Python code for the Connect RPC protocol. It sits in the buf code generation pipeline and outputs type-annotated stubs that work with both WSGI and ASGI frameworks on the server side, and provides client implementations on the client side.

Developers define their Protobuf schema once, run the generator, and get Python classes ready to subclass for servers or instantiate for clients. The plugin supports the Connect, gRPC, and gRPC-Web protocols, handles streaming natively, and integrates middleware and interceptors. The generated code is compatible with HTTP/1.1 and HTTP/2.

Use it for

  • Generate type-safe Python server stubs from a Protobuf service definition to implement with ASGI/WSGI frameworks.
  • Create client code automatically from Protobuf schemas for calling remote services.
  • Build polyglot APIs where the same schema generates clients in multiple languages.
  • Set up RPC middleware for logging, tracing, and metrics via interceptors.
  • Migrate from gRPC to Connect while maintaining protocol interoperability.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are building or consuming Connect RPC services in Python.

The plugin is actively maintained, has no known vulnerabilities, supports Python 3.10 through 3.14, and eliminates manual code duplication between client and server definitions. Install it as a dev dependency in your buf-based code generation workflow. Not necessary if you are not using Connect or Protobuf.

Install

protoc-gen-connect-python on PyPI

Before you install

Medium install friction: distributed as pre-built wheels across multiple platforms (macOS arm64/x86_64, Linux aarch64/x86_64, Windows amd64/arm64), but requires Python 3.10 or later and is typically installed as a development dependency.

Requires Python 3.10 or later; used as a protoc plugin within a buf code generation workflow, not as a runtime library.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for both open-source and proprietary projects.

Quickstart

# Install as development dependency
uv add --dev protoc-gen-connect-python

# Configure in buf.gen.yaml:
# version: v2
# plugins:
#   - local: .venv/bin/protoc-gen-connectrpc
#     out: gen

# Run buf generate to produce Python code from .proto files

Verify before relying

  • Whether the plugin works with both protobuf-py and google-protobuf implementations without additional configuration.
  • Performance characteristics and code generation speed for large Protobuf schemas.
  • Compatibility with existing gRPC Python codebases during migration to Connect.
  • What runtime dependencies the generated code requires beyond the protoc plugin itself.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionMedium. Platform-specific wheel
Runtime dependenciesNone
MaintenanceActively maintained 148 days since the last release
Last repo commit
First released
Downloads255,199 / month, #8,483 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaEnvironment :: ConsoleIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: GoProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Code GeneratorsTopic :: Software Development :: CompilersTopic :: System :: Networking

Evidence: protoc_gen_connect_python-0.9.0-py3-none-macosx_11_0_arm64.whl; protoc_gen_connect_python-0.9.0-py3-none-macosx_11_0_x86_64.whl; protoc_gen_connect_python-0.9.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.musllinux_1_1_aarch64.whl; protoc_gen_connect_python-0.9.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.musllinux_1_1_x86_64.whl; protoc_gen_connect_python-0.9.0-py3-none-win_amd64.whl; protoc_gen_connect_python-0.9.0-py3-none-win_arm64.whl

Tags

Capabilities
protoc plugin python code generationconnect rpc python codegenprotobuf python client server generatorconnect protocol python pluginrpc code generator pythonprotobuf schema to python codeconnect-rpc python stubs
Topics
code-generationprotobufrpc-framework
PyPI keywords
protocprotobufprotocol-bufferscode-generationconnectconnectrpcconnect-protocolconnect-rpcrpccompilerplugin

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “connect rpc python codegen”

  • protoc-gen-connect-pythonA protoc plugin that generates Python client and server code for the…
  • connect-pythonProvides Python client and server libraries for Connect RPC, a…
  • connectrpcConnect is a runtime library for building and consuming RPC APIs…

Give your agent the search over MCP, or paste the wish link into any chat.

More Networking packages

h11 With conditions
PyPI · WWW/HTTP · released Apr 2025

h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.

MITpure Python · 3.8+aging
894.9Mdownloads / mo
psutil Worth it
PyPI · Libraries · released Jan 2026

psutil retrieves real-time information about running processes and system resources (CPU, memory, disks, network, sensors) across multiple operating systems, enabling system monitoring, process profiling, and resource management.

permissive licensecompiled wheel · 3.6+
387.6Mdownloads / mo
pyOpenSSL With conditions
PyPI · Python Modules · released Aug 2026

pyOpenSSL wraps OpenSSL's SSL/TLS functionality for Python, providing high-level connection objects and certificate handling through a Python-friendly interface around OpenSSL's cryptographic operations.

Apache-2.0pure Python · 3.9+
294.2Mdownloads / mo
uvloop With conditions
PyPI · Networking · released Oct 2025

uvloop is a drop-in replacement for Python's built-in asyncio event loop, implemented in Cython and using libuv, that accelerates async I/O operations.

Apache-2.0compiled wheel · 3.8.1+
257.9Mdownloads / mo
execnet With conditions
PyPI · Libraries · released Nov 2025

execnet lets you spawn and communicate with Python interpreters across local processes, remote hosts, and different platforms, using a simple API for task distribution and inter-process messaging.

However, the aging maintenance status (275 days since last release) means you should verify it meets your concurrency and performance needs before committing to a…

MITpure Python · 3.8+aging
172.1Mdownloads / mo
pyzmq Worth it
PyPI · Networking · released Sep 2025

PyZMQ provides Python bindings for ZeroMQ (ØMQ), a lightweight messaging library that enables fast, asynchronous communication between distributed processes and applications.

BSD-3-Clausecompiled wheel · 3.8+
109.5Mdownloads / mo

See also connect-python · connectrpc · twirp · protoc-gen-openapiv2 · hatch-protobuf · protobuf-py · grpc-gateway-protoc-gen-openapiv2 · aristaproto · betterproto · setuptools-protobuf