Dars Framework
Dynamic Application Rendering System is a modern Full-Stack Python framework for web applications. Dars is designed to make web app development simple, fast, and enjoyable. With an intuitive API and powerful features, you can build modern web applications in record time using Python.
from dars.all import *
app = App("My App")
counter = State("ui", count=0)
@route("/")
def index():
return Page(
Text(useDynamic("ui.count"),
style="fs-[48px] font-bold"
),
Button("+",
on_click=counter.count.increment(1)
),
Button("−",
on_click=counter.count.decrement(1)
),
)
app.add_page("index", index(), title="Index")