Python
Build HTTP APIs with Fusion Framework for Python
Overview
The Python package is the primary language binding for Fusion Framework.
You define class-based HTTP modules with @route and FusionBaseApi. Routing, parameter binding, parsing, and response serialization run in the shared Rust core (fusion-core). Python stays a thin developer-experience layer.
Install with:
pip install fusion-frameworkYou are viewing v1. New versions will appear in the version selector when published.
What you get
- Class-based APIs:
get/post/put/patch/delete - Typed handler parameters bound from path, JSON body, or query
- Auto-generated Swagger / OpenAPI UI (
fusion.<env>.json+ per-route@routemetadata) - Global and route middleware (none by default — you register your own)
statushelpers such asstatus.HTTP_SUCCESS(200)- Sync and async handlers and middleware
HTTPExceptionfor structured error responses
Guides in this version
| Page | Topic |
|---|---|
| Getting Started | Install, scaffold, first API |
| Router | @route, path tokens, binding, Swagger |
| Config | fusion.<env>.json, load_settings_module, get_settings |
| Middleware | Global / route middleware, JWT helpers |
| Async | Async handlers and async middleware |
Scaffold with fusion init, then start at Getting Started.