Skip to content

NestipyFull‑stack Python framework

Build modular backends, typed actions, and React UIs from one codebase.

Nestipy Logo

Fullstack by design

Nestipy brings NestJS‑style architecture to Python and adds a web layer that compiles Python UI to React. You write services and UI in one language and ship both sides with typed clients.

Backend example (controller + module)

py
from nestipy.common import Controller, Get, Module

@Controller("/api")
class AppController:
    @Get("/ping")
    async def ping(self) -> dict:
        return {"ok": True}

@Module(controllers=[AppController])
class AppModule:
    pass

Actions (typed RPC)

py
from nestipy.common import Injectable
from nestipy.web import action

@Injectable()
class AppActions:
    @action()
    async def hello(self, name: str) -> str:
        return f"Hello {name}"

Web UI (Python → React)

py
from nestipy.web import component, h

@component
def Page():
    return h.div(
        h.h1("Nestipy Web"),
        h.p("Python-first UI"),
        class_name="p-8",
    )

Run the backend

bash
python main.py

Web quickstart (frontend)

bash
nestipy run web:init
nestipy run web:dev --vite --install --proxy http://127.0.0.1:8001

Released under the MIT License.