Get Started
Comparison
How pRPC compares to other RPC frameworks
pRPC vs Other Frameworks
pRPC is a modern, type-safe RPC framework for Python that eliminates the need for OpenAPI schemas, heavy generators, and manual boilerplate.
Key Differences
vs tRPC
- pRPC: Python-first, built for asyncio and modern Python type hints
- tRPC: TypeScript-only, limited to Node.js ecosystem
vs gRPC
- pRPC: Uses HTTP/JSON, no
.protofiles needed, developer-friendly - gRPC: Requires Protocol Buffers, steeper learning curve, binary protocol
vs FastAPI
- pRPC: End-to-end type safety from server to client, automatic client generation
- FastAPI: Manual client code, OpenAPI schemas as intermediary
When to Use pRPC
✅ You want type-safe RPC without code generation
✅ You're building with Python on the backend
✅ You need seamless integration with FastAPI or Flask
✅ You prefer async/await patterns
# Example: pRPC server
from prpc import Router
router = Router()
@router.procedure()
async def get_user(user_id: int) -> User:
return await db.get_user(user_id)