FusionFusion

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-framework

You 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 @route metadata)
  • Global and route middleware (none by default — you register your own)
  • status helpers such as status.HTTP_SUCCESS (200)
  • Sync and async handlers and middleware
  • HTTPException for structured error responses

Guides in this version

PageTopic
Getting StartedInstall, scaffold, first API
Router@route, path tokens, binding, Swagger
Configfusion.<env>.json, load_settings_module, get_settings
MiddlewareGlobal / route middleware, JWT helpers
AsyncAsync handlers and async middleware

Scaffold with fusion init, then start at Getting Started.

On this page