{"repo":"i2y/pydantic-rpc","free":true,"listed":false,"github":"https://github.com/i2y/pydantic-rpc","clone":"git clone https://github.com/i2y/pydantic-rpc.git","description":"PydanticRPC is a Python library for rapidly exposing Pydantic models as gRPC, ConnectRPC, and MCP services without protobuf files.","language":"Python","stars":78,"topics":["grpc","protobuf","pydantic","python3","connectrpc","python","python-library","mcp","mcp-server"],"license":"MIT","category":"mcp-servers","readme_excerpt":"🚀 PydanticRPC PydanticRPC is a Python library that enables you to rapidly expose Pydantic models via gRPC/Connect RPC services without writing any protobuf files. Instead, it automatically generates protobuf files on the fly from the method signatures of your Python objects and the type signatures of your Pydantic models. Below is an example of a simple gRPC service that exposes a PydanticAI agent: And here is an example of a simple Connect RPC service that exposes the same agent as an ASGI application: 💡 Key Features - 🔄 Automatic Protobuf Generation: Automatically creates protobuf files matching the method signatures of your Python objects. - ⚙️ Dynamic Code Generation: Generates server and client stubs using grpcio-tools . - ✅ Pydantic Integration: Uses pydantic for robust type validation and serialization. - 📄 Pprotobuf File Export: Exports the generated protobuf files for use in other languages. - For gRPC: - 💚 Health Checking: Built-in support for gRPC health checks using grpc health.v1 . - 🔎 Server Reflection: Built-in support for gRPC server reflection. - ⚡ Asynchronous Support: Easily create asynchronous gRPC services with AsyncIOServer . - For Connect-RPC: - 🌐 Full Protocol Support: Native Connect-RPC support via connect-python - 🔄 All Streaming Patterns: Unary, server streaming, client streaming, and bidirectional streaming - 🌐 WSGI/ASGI Applications: Run as standard WSGI or ASGI applications for easy deployment - 🛠️ Pre-generated Protobuf Files and Code:","default_branch":null,"files":null,"tree":[],"storefront":"/r/i2y","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/i2y/pydantic-rpc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}