Get Started
Installation
Install pRPC and its modular adapters.
pRPC follows a modular packaging strategy. You only pay for what you use.
Core Package
The tiny core protocol and runtime. This is always required.
# Using uv
uv add prpc
# Using pip
pip install prpcAdapters
Install the adapter for your favorite web framework.
FastAPI
uv add prpc-fastapiFlask
uv add prpc-flaskCodegen & CLI
Tools for generating TypeScript clients and inspecting your registry.
uv add prpc-codegenQuick Start Example (FastAPI)
from fastapi import FastAPI
from prpc import rpc
from prpc_fastapi import mount_fastapi
app = FastAPI()
@rpc
def add(a: int, b: int) -> int:
return a + b
mount_fastapi(app)Next
- Quickstart — Full server + client example
- Concepts — Mental model and protocol design