-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Betrand edited this page Feb 26, 2026
·
1 revision
Welcome to the Mallo framework documentation.
Mallo is a lightweight, customizable Python web framework with a small core, built-in live reload, templates, routing, static files, middleware, and customizable error pages.
Start Here
- Getting Started
- Configuration
- Routing
- Templates
- Requests and Responses
- Middleware and Hooks
- Sessions and CSRF
- Error Handling
- Database
- CLI
- Deployment
- Troubleshooting
- Contributing
Pages
Getting-Started.mdConfiguration.mdRouting.mdTemplates.mdStatic-Files.mdRequests-Responses.mdMiddleware-Hooks.mdSessions-CSRF.mdError-Handling.mdHot-Reload.mdDatabase.mdCLI.mdDeployment.mdTroubleshooting.mdContributing.md
Advantages
- Small, readable core that you can understand quickly
- Fast local iteration with built-in live reload
- Clean routing, typed params, and simple URL building
- Lightweight template engine with clear syntax
- Built-in static files and friendly error pages
- Middleware and hooks without extra ceremony
Why Use Mallo
Use Mallo if you want a framework that is:
- Minimal but practical for real apps
- Easy to learn and easy to extend
- Friendly for teaching, prototyping, or small production systems
- Clear about what it does and how it does it
How Mallo Differs From Other Frameworks
Compared to larger frameworks (Flask, Django, FastAPI), Mallo is:
- Smaller in core and easier to read end-to-end
- Less magic, more explicit behavior
- Focused on learning, customization, and clarity
- Opinion-light, so you can shape the architecture
Compared to micro frameworks, Mallo includes:
- Built-in template engine
- Built-in error pages
- Built-in hot reload
- Built-in middleware and groups
Comparison Table
| Feature | Mallo | Flask | Django | FastAPI |
|---|---|---|---|---|
| Core size / readability | Small, easy to read | Small/medium | Large | Medium |
| Learning curve | Low | Low | Medium/high | Medium |
| Built-in templates | Yes | Jinja via extensions | Yes | No (uses Jinja or others) |
| Built-in ORM | No | No | Yes | No |
| Routing style | Decorators | Decorators | URLconf + views | Decorators |
| Type hints focus | Light | Light | Light | Strong |
| Auto docs (OpenAPI) | No | No | No | Yes |
| Live reload | Built-in | Extensions | Extensions | Extensions |
| Error pages | Built-in | Custom | Built-in | Custom |
| Middleware | Built-in | Extensions | Built-in | Built-in |
| Best for | Learning, small apps, customization | General micro apps | Large, batteries-included | APIs and async services |