$ pip install -U view.py

Use view.py as a micro web framework

from view import new_app

app = new_app()

@app.query("greeting", str, default="Hello")
def index(greeting: str):
    return f"{greeting}, view.py!"


...Or as fullstack

# routes/index.py
from view import get, query, template

@query("greeting", str, default="Hello")
async def index(greeting: str):
    # greeting is automatically accessible via the template
    return await template("index")

# Filesystem Based Routing

Affiliated With

Space Hosting