pyRPC is a framework-agnostic remote procedure call (RPC) framework that brings seamless, end-to-end type safety to the bridge between Python backends and TypeScript frontends. It allows you to define your server logic in Python and automatically reflects those types in your client-side implementation with zero-cost abstractions. Whether you are using FastAPI, Flask, or Django, pyRPC ensures that your API boundaries are as type-safe as your internal application code.
Type safety in cross-language ecosystems has traditionally been a fragmented and painful process. Developers are often forced to choose between manually maintaining brittle interfaces, relying on heavy code generation, or switching to third-party services that own their data.
In the TypeScript world, tools like tRPC revolutionized how we build full-stack apps by removing the need for an intermediate API layer. We believe that Python developers—and those building cross-language stacks—deserve that same "invisible" developer experience. pyRPC was built to solve the "half-solved" problem of cross-language type safety, allowing the community to build faster and break less without reinventing the wheel.