Skip to content

Getting Started

Betrand edited this page Feb 26, 2026 · 1 revision

Getting Started

What Is Mallo

Mallo is a minimal Python web framework that focuses on clarity and DX. It provides routing, templates, static files, middleware, error pages, and hot reload in a small, readable core.

Why Use Mallo

  1. Small, readable codebase
  2. Quick iteration with live reload
  3. Simple routing and typed parameters
  4. Built-in templates and static serving
  5. Friendly error pages

Installation

pip install mallo

Recommended project scaffold:

mallo create myapp
cd myapp
python app.py

Quick Start

from mallo import Mallo

app = Mallo(__name__)

@app.get("/")
def home(request):
    return "<h1>Hello from Mallo</h1>"

if __name__ == "__main__":
    app.run(debug=True, use_reloader=True)

Open http://localhost:8000.

Clone this wiki locally