i2y/pydantic-rpc

PydanticRPC is a Python library for rapidly exposing Pydantic models as gRPC, ConnectRPC, and MCP services without protobuf files.

40
/ 100
Emerging

Automatically generates protobuf definitions and stubs at runtime from Python method signatures and Pydantic type hints, eliminating manual proto file maintenance. Supports three RPC protocols—gRPC (via async/sync servers with health checks and reflection), Connect-RPC (as ASGI/WSGI apps over HTTP), and MCP (for AI tool exposure)—all from a single service class. Features built-in error mapping decorators, streaming support across all patterns, and optional pre-generation via CLI for production deployments.

No Package No Dependents
Maintenance 10 / 25
Adoption 8 / 25
Maturity 9 / 25
Community 13 / 25

How are scores calculated?

Stars

68

Forks

8

Language

Python

License

MIT

Last pushed

Feb 03, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/mcp/i2y/pydantic-rpc"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.