Skip to main content

Fusion Framework (Python)

Class-based HTTP APIs on a shared Rust core (fusion-core).

Install

pip install fusion-framework

Scaffold with Fusion Tool:

fusion init --lang python --name my-app

Quick start

from fusion_framework.api import FusionBaseApi
from fusion_framework.route import route
from fusion_framework import status
from fusion_framework.app import FusionApp
from fusion_framework.config import get_settings, load_settings_module


@route("api/[module]/{id}")
class ItemModule(FusionBaseApi):
    def get(self, id: int):
        return self.response({"id": id}, status=status.HTTP_SUCCESS)


MIDDLEWARE: list = []  # add middleware explicitly, e.g. framework_headers()


def main() -> None:
    load_settings_module("settings")
    app = FusionApp(get_settings())
    for mw in MIDDLEWARE:
        app.use(mw)
    app.listen()


if __name__ == "__main__":
    main()

Auto-reload (development)

app.listen(reload=True)   # restart when files change
app.listen(reload=False)  # never reload (default)
# or in fusion.dev.json: { "reload": true }

Docs

Full guides (router, config, middleware, async):
https://fusion.cipherunit.xyz/en/docs/python/v1

License

BSD 3-Clause

Release files for fusion-framework 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fusion-framework 2.0.1
File Size Uploaded
fusion_framework-2.0.1.tar.gz 599.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for fusion-framework 2.0.1
File
fusion_framework-2.0.1-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
fusion_framework-2.0.1-cp39-abi3-manylinux_2_28_x86_64.whl CPython 3.9 abi3 Linux glibc 2.28+ x86-64 Details
fusion_framework-2.0.1-cp39-abi3-manylinux_2_28_aarch64.whl CPython 3.9 abi3 Linux glibc 2.28+ ARM64 Details
fusion_framework-2.0.1-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details

Total release size: 9.4 MB

Release files / fusion_framework-2.0.1.tar.gz

Download URL fusion_framework-2.0.1.tar.gz
Size 599.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7a55103e40094425d2cc7378106416b182c54eed698fda0b306892cc442186cd
BLAKE2b-256 checksum
How to use checksums
cea2e9908494e74ddcb4ba24d0262840f94b5ebd23ed73aa630c949ff30ecf64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.

Transparency log

Release files / fusion_framework-2.0.1-cp39-abi3-win_amd64.whl

Download URL fusion_framework-2.0.1-cp39-abi3-win_amd64.whl
Size 2.1 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
5be7c40897706129f93b375e698a2b37c0647f2c5f2dbbcb7f7b4b4e0fe16731
BLAKE2b-256 checksum
How to use checksums
46ff6c9b4d317f22f7f8ba38b71734d9662a01afeb37ff1baa560f5d88dfccc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.

Transparency log

Release files / fusion_framework-2.0.1-cp39-abi3-manylinux_2_28_x86_64.whl

Download URL fusion_framework-2.0.1-cp39-abi3-manylinux_2_28_x86_64.whl
Size 2.3 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
59d1e6c392fb2638b94ee0313c6152e00553f3008f4004e9fdcef83f23446515
BLAKE2b-256 checksum
How to use checksums
6fd765b7adb28107af433b70f76b5d444cb14053bd6e976c13da8fe18a53696e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.

Transparency log

Release files / fusion_framework-2.0.1-cp39-abi3-manylinux_2_28_aarch64.whl

Download URL fusion_framework-2.0.1-cp39-abi3-manylinux_2_28_aarch64.whl
Size 2.3 MB
Tags CPython 3.9 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
15adbff3e2ed996f4b6c70c7746a1403d4dfa09cb833cb1761aab28ea5d6862d
BLAKE2b-256 checksum
How to use checksums
56cff906bcad2e1c372e5da8719930d3c5f7818d2c669ff0060a00cabe01132d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.

Transparency log

Release files / fusion_framework-2.0.1-cp39-abi3-macosx_11_0_arm64.whl

Download URL fusion_framework-2.0.1-cp39-abi3-macosx_11_0_arm64.whl
Size 2.1 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4f73f788b9394e657e3494ae7dbcc0fc209d6e2e66b42a42c8b465fd5e06554f
BLAKE2b-256 checksum
How to use checksums
a42a6d7c6ec7df973d1ae4f2d9322741c23fcbae3d9a5f2c6b5208d64c816b9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.0.1 This release

5 release files

2.0.0

5 release files

1.3.0

5 release files

1.2.6

5 release files

1.2.5

5 release files

1.2.4

5 release files

1.2.3

5 release files

1.2.2

5 release files

1.2.1

5 release files

1.2.0

5 release files

1.1.3

5 release files

1.1.2

5 release files

1.1.1

5 release files

1.1.0

5 release files

0.1.2

5 release files

0.1.1

5 release files

0.1.0

5 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page