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:

import b4n1_boost

b4n1_boost.install_fastapi()

Flask

In your app initialization:

import b4n1_boost

b4n1_boost.install_flask()

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.4",
  "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.4.tar.gz (399.5 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.4-cp38-abi3-musllinux_1_2_x86_64.whl (328.5 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ x86-64

b4n1_boost-0.1.4-cp38-abi3-manylinux_2_34_x86_64.whl (367.3 kB view details)

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

b4n1_boost-0.1.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (333.7 kB view details)

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

File details

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

File metadata

  • Download URL: b4n1_boost-0.1.4.tar.gz
  • Upload date:
  • Size: 399.5 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.4.tar.gz
Algorithm Hash digest
SHA256 0901f00b15b88ad6fbab211c6ac54b25b029740a9e9efa8abddc0aff8adfdbdb
MD5 0252ff2cf419d198af892cb105800996
BLAKE2b-256 89e9a66fe3e5cfcb8580f71e44f43101df3793ed8b58c2ddfe2c59e62d33b790

See more details on using hashes here.

File details

Details for the file b4n1_boost-0.1.4-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for b4n1_boost-0.1.4-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a7af5420a7d4901b4a358d55aa10a2a6c8ee24038d75cdeb06c59d55d72b5337
MD5 b88316a52e7398b41408c19233a1e511
BLAKE2b-256 281da0c98ef740f05bbf9229d49f8eb8bf6ef3a755b8c62a2a43657b3489daed

See more details on using hashes here.

File details

Details for the file b4n1_boost-0.1.4-cp38-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for b4n1_boost-0.1.4-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4f1aaf2abd6050947f65aa0764406ca7a68a507c49d469efcb71e81da461003c
MD5 8694cf82864b5da2036145875a0a2250
BLAKE2b-256 e65930ed4cee47ac6a1c5aad26389b2ed64db12b081c28c59374b76f4e6bc752

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for b4n1_boost-0.1.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c4b87a98f164d34698460ef0ebc2ced5275a59ae663d8f1681a945dbac8a894f
MD5 0211064b83fce02e61c2bab124ca66c1
BLAKE2b-256 5501a82cad435f777fa517d367e46eafab172d34cd86f1c374eee8cc3fc8e49e

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

0.1.6

6 files

0.1.5

2 files

This release

0.1.4 This release

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