Back

2025

Backend · Libraries & Tools

pyrpc

The type-safe framework for Python backends and TypeScript frontends.

Python backends lack a type-safe, tRPC-like RPC layer for seamless communication with TypeScript frontends. Existing approaches force teams to duplicate type definitions across both languages.

Build an open-source, framework-agnostic RPC framework for Python that generates TypeScript contracts directly from Python procedure definitions.

Built a modular RPC framework using Pydantic v2 schemas that generates TypeScript contracts straight from Python procedure definitions. Ships as separate packages (core, adapters, codegen) with first-class support for FastAPI, Flask, and Django.

Now a public, MIT-licensed open-source project that eliminates type duplication - define schemas once in Python and get TypeScript types for free.

Stack

TypeScriptPythonFastAPIPydantic
Up Next

BionicJS