Get Started
Introduction
Welcome to pRPC - The type-safe, Python-first RPC framework.
pRPC is a modern "drop-in RPC layer" for Python. It turns your backend into a library of typed async functions that can be called from anywhere.
Inspired by the DX of tRPC and Better Auth, pRPC eliminates the need for OpenAPI schemas, heavy generators, or manual boilerplate.
Why pRPC?
- Python-native: Built for asyncio, Pydantic v2, and modern Python type hints.
- End-to-End Typing: Request, response, and errors stay in sync automatically.
- Zero Config: Drop it into your existing FastAPI or Flask app in seconds.
- Modular: Only install what you need (core, adapters, codegen).
How it works
- Define: Use the
@rpcdecorator on any Python function. - Mount: Attach your pRPC registry to your favorite web framework.
- Call: Use the pRPC client (Python or generated TypeScript) to call your functions.