Skip to main content

📦 b4n1-boost

Transparent native middleware acceleration layer for Python frameworks (Django, FastAPI, Flask, WSGI/ASGI).

License PyPI

🌍 Languages / Idiomas / 语言

🇬🇧 English 🇪🇸 Español 🇫🇷 Français 🇩🇪 Deutsch
🇵🇹 Português 🇨🇳 简体中文 🇯🇵 日本語

🚀 Features

  • 🚀 General Throughput Acceleration: 3x to 11x faster request processing.
  • JSON Serialization: Up to 50x speedup over standard Python dynamic serialization.
  • 🛡️ Native Rust Middleware: Zero-overhead FFI interop between Python and Rust.
  • 🔐 License Compliance: BSL 1.1 with a clear free tier and enterprise licensing path.
  • 📊 Framework Support: Django, FastAPI, Flask, WSGI/ASGI integration.

📦 Installation

pip install b4n1-boost

Precompiled native binaries are bundled with the wheel for Linux, macOS and Windows — no compiler required.


🚀 Quick Start

No code rewrites. Initialize the SDK when your app starts:

Django

In your settings.py or wsgi.py:

import b4n1_boost

b4n1_boost.install_django()

FastAPI

In your main module:

from fastapi import FastAPI
import b4n1_boost

app = FastAPI()
b4n1_boost.install_fastapi(app)

Flask

In your app initialization:

from flask import Flask
import b4n1_boost

app = Flask(__name__)
b4n1_boost.install_flask(app)

Auto-detection

Let b4n1-boost detect the active framework automatically:

import b4n1_boost

b4n1_boost.autoboost()

🔍 Status & Diagnostics

Check the engine state and active accelerations:

import b4n1_boost

print(b4n1_boost.status())

Expected output:

{
  "native_extension": true,
  "version": "0.1.6",
  "features": ["json_acceleration", "orm_interception", "websocket_acceleration"]
}

Run the native benchmark suite:

report = b4n1_boost.run_benchmarks(iterations=100_000)
print(f"JSON ops/sec: {report['json_bench']['ops_per_sec']:,.0f}")
print(f"ORM ops/sec:  {report['orm_bench']['ops_per_sec']:,.0f}")

🔗 Links


📄 License

This project is distributed under the Business Source License 1.1 (BSL 1.1).

  • Free for development, evaluation, testing, personal projects, and startups generating under $100,000 USD in annual gross revenue.
  • Commercial license required for organizations with annual gross revenue >= $100,000 USD, government agencies, and public bidding projects.
  • After the Change Date (4 years), the work converts to Apache License 2.0.

See LICENSE for the full legal text.


b4n1-boost is a core component of the B4N1 sovereign computing stack, providing transparent native middleware acceleration for Python frameworks.

Built with ❤️ by the B4N1 team.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

b4n1_boost-0.1.6.tar.gz (33.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

b4n1_boost-0.1.6-cp38-abi3-win_amd64.whl (194.3 kB view details)

Uploaded CPython 3.8+Windows x86-64

b4n1_boost-0.1.6-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (345.4 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

b4n1_boost-0.1.6-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (334.0 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

b4n1_boost-0.1.6-cp38-abi3-macosx_11_0_arm64.whl (291.3 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

b4n1_boost-0.1.6-cp38-abi3-macosx_10_12_x86_64.whl (297.2 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file b4n1_boost-0.1.6.tar.gz.

File metadata

  • Download URL: b4n1_boost-0.1.6.tar.gz
  • Upload date:
  • Size: 33.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for b4n1_boost-0.1.6.tar.gz
Algorithm Hash digest
SHA256 40d4b5ac8a23597e5db0526ee3cf32f87d46bf7fc789a9462cd7de3a9c516901
MD5 25f2d41974cad734c43150a041f52378
BLAKE2b-256 d9a855f3ecc942698df8b406bfbebf5fa13c1e92f730fcd1005df10d97b9621c

See more details on using hashes here.

File details

Details for the file b4n1_boost-0.1.6-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: b4n1_boost-0.1.6-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 194.3 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for b4n1_boost-0.1.6-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d94f34b99584da86f339caf631aac60be9099193af2187f9f8efaa6effb9427f
MD5 82e14ef4473af416ad66368036a464d4
BLAKE2b-256 4139194136728096a26dd596c4538ef6069a97c15fe590158ea97fefbc998fc7

See more details on using hashes here.

File details

Details for the file b4n1_boost-0.1.6-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for b4n1_boost-0.1.6-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 58fed2b192c17e406210115c66a2fb1e061d60a1fb14abb19be5b11072cb0972
MD5 1ac8bb35cc3d480a92880bf287bf3a81
BLAKE2b-256 24a223ff7f4739ab5b0a951e0e2c5101a483ed4680c57290686866370459ed91

See more details on using hashes here.

File details

Details for the file b4n1_boost-0.1.6-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for b4n1_boost-0.1.6-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b1287138f9ce35fc11850c3a85d5c091a638714e9d9fa7ffb46053dea62a991f
MD5 74bcb19b45c9b04cc6a50380a667e449
BLAKE2b-256 47cab1e6a4d925b54d60a18fb3af0c663ed60ef58e79d250847dd0a620b727a7

See more details on using hashes here.

File details

Details for the file b4n1_boost-0.1.6-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for b4n1_boost-0.1.6-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 00c5ab2d849b9b171d498882ef5fa38bf0f1805c2d10959d1ca506ccd982ada7
MD5 258ee09d17815f77ffe81877a2c4523b
BLAKE2b-256 39f6b4b5781603e592958df7839ab03a2c314153a391688458097a7d9683143c

See more details on using hashes here.

File details

Details for the file b4n1_boost-0.1.6-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for b4n1_boost-0.1.6-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f903c5238342e4f785a8da4905c966c9de495c8b07260834d35b25c7fb7db47f
MD5 9b3f38500ec6b4bece13c62f412d965f
BLAKE2b-256 1701156ee0b8dc8f965615fe726cd172537127f9e8efc61a04688e4fde59fe79

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.4

6 files

0.3.3

6 files

0.3.2

2 files

0.3.1

2 files

0.3.0

6 files

0.1.9

6 files

0.1.8

7 files

This release

0.1.6 This release

6 files

0.1.5

2 files

0.1.4

4 files

0.1.3

3 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 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