Build modern single-page applications with Django, Flask, and FastAPI. No API required.
Skip building a separate REST or GraphQL API. Your controllers return page components directly.
Use your familiar Python routing. No client-side router needed.
Users get the speed and responsiveness of a single-page app without the complexity.
With server-side rendering support, your pages are fully indexable by search engines.
@app.get("/users/{id}")
async def show_user(
id: int,
inertia: InertiaDep
):
user = await get_user(id)
return inertia.render(
"Users/Show",
{
"name": user.name,
"email": user.email,
}
)interface Props {
name: string
email: string
}
export default function Show({ name, email }: Props) {
return (
<Layout>
<h1>{name}</h1>
<p>{email}</p>
</Layout>
)
}Get up and running in minutes. Check out our documentation to learn more.
Read the Docs