Skip to main content

Fusion Framework (Python)

فریم‌ورک HTTP کلاس‌محور با هستهٔ Rust — سریع، یکپارچه، و مشترک بین Python / Node / C#.

مسیریابی، بایندینگ پارامتر، و سریالایز پاسخ در fusion-core اجرا می‌شود؛ پایتون لایهٔ نازک DX است.

لینک‌ها

نصب

pip install fusion-framework

پروژهٔ جدید با CLI:

fusion init --lang python --name my-app
cd my-app
pip install fusion-framework

مثال کوتاه

from fusion_framework.api import FusionBaseApi
from fusion_framework.route import route
from fusion_framework import status


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

    async def post(self, id: int, title: str = "untitled"):
        return self.response(
            {"id": id, "title": title},
            status=status.HTTP_201_CREATED,
        )

در main.py ماژول را import کنید، تنظیمات را لود کنید، و سرور را بالا بیاورید:

import src.modules.items.items  # noqa: F401

from fusion_framework.app import FusionApp
from fusion_framework.config import get_settings, load_settings_module

MIDDLEWARE: list = []  # middleware اختیاری — فریم‌ورک پیش‌فرض ندارد


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


if __name__ == "__main__":
    main()

امکانات

  • API کلاس‌محور: get / post / put / patch / delete
  • بایندینگ typed از path / body / query
  • Swagger / OpenAPI خودکار
  • Middleware سراسری و روی route (بدون پیش‌فرض)
  • Handler و middleware همگام و ناهمگام
  • تنظیمات از fusion.<env>.json + core/settings.py

مستندات بیشتر

راهنمای کامل Python (Router، Config، Middleware، Async):

https://fusion.cipherunit.xyz/en/docs/python/v1

مجوز

MIT

Release files for fusion-framework 1.1.3

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 1.1.3
File Size Uploaded
fusion_framework-1.1.3.tar.gz 43.4 kB Details

Built distributions (wheels)

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

Total release size: 3.7 MB

Release files / fusion_framework-1.1.3.tar.gz

Download URL fusion_framework-1.1.3.tar.gz
Size 43.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e0770e3315323c5413c46682d84c09daf96a6be34e9b1d4f324a80de60662f12
BLAKE2b-256 checksum
How to use checksums
822e5cb833d2e9b7cc56badb2e0f4614d8cc87690a1b6666a0566f7385d818c4
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 Aug 13, 2026.

Transparency log

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

Download URL fusion_framework-1.1.3-cp39-abi3-win_amd64.whl
Size 790.1 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
d7bd15f808d76eaaf26e981bb156b873f974891db65cbc0e48c83c563287512f
BLAKE2b-256 checksum
How to use checksums
4e8e16330756a907f0528408ad54d85acaf155a7fff4df8a786c118f1a8edcdc
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 Aug 13, 2026.

Transparency log

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

Download URL fusion_framework-1.1.3-cp39-abi3-manylinux_2_28_x86_64.whl
Size 1.0 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
85fcf488400e13f57c11f9c00d1c070c9cfb5a4b2c564d5c283ec0c3030c4b51
BLAKE2b-256 checksum
How to use checksums
41c5285ee1535e15f5e9f0177df7fa16f62ecd864cda9c9204d95beb758cafbb
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 Aug 13, 2026.

Transparency log

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

Download URL fusion_framework-1.1.3-cp39-abi3-manylinux_2_28_aarch64.whl
Size 1.0 MB
Tags CPython 3.9 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
d8c406ee50bea4c6707e2ff7807307bce4586c09d205eab7cd65e91ee1a15d31
BLAKE2b-256 checksum
How to use checksums
003e9d7931fd7cc4faf5f945e311526be49489a1f59034cfad770a9c666b6c29
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 Aug 13, 2026.

Transparency log

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

Download URL fusion_framework-1.1.3-cp39-abi3-macosx_11_0_arm64.whl
Size 891.4 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
73a653c5f15739510788c3e084339fe6cf0ef2f3177eff8dc9f3b9766f4d4910
BLAKE2b-256 checksum
How to use checksums
ec29ec9302abb9cfbbd2b366b563ba49f578791eb1f4f8a3fed92cb0713e17a0
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 Aug 13, 2026.

Transparency log

Release history Release notifications | RSS feed

2.0.1

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

This release

1.1.3 This release

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