Astris LogoAstris
DocumentationGitHub
Astris v0.1.4 Available on PyPI

Build static sites in pure Python

A minimal framework using component-style APIs. No HTML boilerplate. Just elegant, reusable Python objects rendered instantly.

main.py
from astris.lib import H1, Div, P
@app.page("/")def home():return Div(**{"class": "p-8 bg-slate-900 border"},children=[H1(children=["Hello Astris"]),P(children=["Python objects rendered gracefully."])])

Why choose Astris?

🐍

100% Python

Say goodbye to Jinja or context processors. Handle all your logic and rendering directly in Python objects.

🧩

Component Based

Extract your nested UI trees into reusable Python functions or classes. Build complex interfaces modularly.

Zero JS Config

Static builds happen instantly. Drop in a Tailwind CDN script globally, and style purely with dictionary attributes.

Ready to build with Astris?

Initialize a new project using UV and start writing your website logic in elegant Python.