b4n1-boost 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- b4n1_boost-0.1.0/LICENSE +20 -0
- b4n1_boost-0.1.0/PKG-INFO +28 -0
- b4n1_boost-0.1.0/README.md +17 -0
- b4n1_boost-0.1.0/b4n1_boost/__init__.py +95 -0
- b4n1_boost-0.1.0/b4n1_boost/__main__.py +12 -0
- b4n1_boost-0.1.0/b4n1_boost.egg-info/PKG-INFO +28 -0
- b4n1_boost-0.1.0/b4n1_boost.egg-info/SOURCES.txt +9 -0
- b4n1_boost-0.1.0/b4n1_boost.egg-info/dependency_links.txt +1 -0
- b4n1_boost-0.1.0/b4n1_boost.egg-info/top_level.txt +1 -0
- b4n1_boost-0.1.0/pyproject.toml +19 -0
- b4n1_boost-0.1.0/setup.cfg +4 -0
b4n1_boost-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Business Source License 1.1
|
|
2
|
+
|
|
3
|
+
Parameters:
|
|
4
|
+
|
|
5
|
+
Licensor: B4N1 Inc. / Bani Montoya
|
|
6
|
+
Licensed Work: b4n1-boost Python SDK and Acceleration Libraries
|
|
7
|
+
Change Date: 4 years from the date of release
|
|
8
|
+
Change License: Apache License, Version 2.0
|
|
9
|
+
|
|
10
|
+
Terms and Conditions:
|
|
11
|
+
|
|
12
|
+
1. Grant of License. Licensor hereby grants you the right to copy, modify, create derivative works, redistribute, and make non-production use of the Licensed Work.
|
|
13
|
+
|
|
14
|
+
2. Production Use. You may use the Licensed Work for production or commercial purposes in internal, non-competing applications. You may not provide the Licensed Work as a managed commercial service or resell access to the core acceleration binaries without authorization from Licensor.
|
|
15
|
+
|
|
16
|
+
3. Change to Open Source License. Effective on the Change Date, the Licensor grants you a license to the Licensed Work under the Change License.
|
|
17
|
+
|
|
18
|
+
4. Notice. You must preserve all copyright and license notices on all copies of the Licensed Work.
|
|
19
|
+
|
|
20
|
+
5. Disclaimer of Warranty. THE LICENSED WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: b4n1-boost
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: B4N1-BOOST — Transparent middleware accelerator for Django, FastAPI and Flask
|
|
5
|
+
Author-email: Bani Montoya <banimontoya@gmail.com>
|
|
6
|
+
License: BSL-1.1
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Dynamic: license-file
|
|
11
|
+
|
|
12
|
+
# b4n1-boost
|
|
13
|
+
|
|
14
|
+
Transparent native middleware acceleration layer for Python frameworks (Django, FastAPI, Flask, WSGI/ASGI).
|
|
15
|
+
|
|
16
|
+
## Performance Profile
|
|
17
|
+
|
|
18
|
+
- 🚀 **General Throughput Acceleration**: 3x to 11x faster request processing.
|
|
19
|
+
- ⚡ **JSON Serialization**: Up to 50x speedup over standard Python dynamic serialization.
|
|
20
|
+
|
|
21
|
+
## Intellectual Property & Licensing Terms
|
|
22
|
+
|
|
23
|
+
- **Original Source Code**: 100% Proprietary and Closed Source (**All Rights Reserved** by Bani Montoya). Source code in Rust is not publicly shared or distributed.
|
|
24
|
+
- **Public Native Binaries & SDK Modules**: Distributed under the unified **Business Source License 1.1 (BSL 1.1)**.
|
|
25
|
+
- **Free Usage**: 100% free for development, evaluation, testing, personal projects, and startups generating under **$100,000 USD** in annual gross revenue.
|
|
26
|
+
- **Mandatory Enterprise B2B License**: Required for government agencies, public bidding projects, and enterprise entities with annual gross revenue **>= $100,000 USD**.
|
|
27
|
+
|
|
28
|
+
For licensing inquiries and B2B commercial agreements, visit https://b4n1.com/licensing or contact `b4n1@b4n1.com`.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# b4n1-boost
|
|
2
|
+
|
|
3
|
+
Transparent native middleware acceleration layer for Python frameworks (Django, FastAPI, Flask, WSGI/ASGI).
|
|
4
|
+
|
|
5
|
+
## Performance Profile
|
|
6
|
+
|
|
7
|
+
- 🚀 **General Throughput Acceleration**: 3x to 11x faster request processing.
|
|
8
|
+
- ⚡ **JSON Serialization**: Up to 50x speedup over standard Python dynamic serialization.
|
|
9
|
+
|
|
10
|
+
## Intellectual Property & Licensing Terms
|
|
11
|
+
|
|
12
|
+
- **Original Source Code**: 100% Proprietary and Closed Source (**All Rights Reserved** by Bani Montoya). Source code in Rust is not publicly shared or distributed.
|
|
13
|
+
- **Public Native Binaries & SDK Modules**: Distributed under the unified **Business Source License 1.1 (BSL 1.1)**.
|
|
14
|
+
- **Free Usage**: 100% free for development, evaluation, testing, personal projects, and startups generating under **$100,000 USD** in annual gross revenue.
|
|
15
|
+
- **Mandatory Enterprise B2B License**: Required for government agencies, public bidding projects, and enterprise entities with annual gross revenue **>= $100,000 USD**.
|
|
16
|
+
|
|
17
|
+
For licensing inquiries and B2B commercial agreements, visit https://b4n1.com/licensing or contact `b4n1@b4n1.com`.
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"""
|
|
2
|
+
b4n1_boost — Transparent acceleration middleware for Django, FastAPI & Flask.
|
|
3
|
+
|
|
4
|
+
Usage:
|
|
5
|
+
import b4n1_boost
|
|
6
|
+
|
|
7
|
+
# Auto-detect & accelerate the running framework
|
|
8
|
+
b4n1_boost.autoboost()
|
|
9
|
+
|
|
10
|
+
# Or target a specific framework
|
|
11
|
+
b4n1_boost.install_django()
|
|
12
|
+
b4n1_boost.install_fastapi()
|
|
13
|
+
b4n1_boost.install_flask()
|
|
14
|
+
|
|
15
|
+
# Run the native hardware benchmark suite
|
|
16
|
+
report = b4n1_boost.run_benchmarks()
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
from __future__ import annotations
|
|
20
|
+
|
|
21
|
+
import json
|
|
22
|
+
from typing import Optional
|
|
23
|
+
|
|
24
|
+
try:
|
|
25
|
+
from b4n1_boost._core import (
|
|
26
|
+
py_install_django,
|
|
27
|
+
py_install_fastapi,
|
|
28
|
+
py_install_flask,
|
|
29
|
+
py_autoboost,
|
|
30
|
+
py_run_benchmarks,
|
|
31
|
+
)
|
|
32
|
+
_NATIVE = True
|
|
33
|
+
except ImportError:
|
|
34
|
+
# Pure-Python fallback when the native extension is not compiled yet.
|
|
35
|
+
# This allows importing the package in development without building first.
|
|
36
|
+
_NATIVE = False
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def _parse(raw: str) -> dict:
|
|
40
|
+
return json.loads(raw)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def install_django() -> dict:
|
|
44
|
+
"""Activate b4n1-boost acceleration for Django (JSON + ORM + WebSocket)."""
|
|
45
|
+
if _NATIVE:
|
|
46
|
+
return _parse(py_install_django())
|
|
47
|
+
return {"framework": "Django", "status": "pure-python-fallback", "native": False}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def install_fastapi() -> dict:
|
|
51
|
+
"""Activate b4n1-boost acceleration for FastAPI (JSON + WebSocket)."""
|
|
52
|
+
if _NATIVE:
|
|
53
|
+
return _parse(py_install_fastapi())
|
|
54
|
+
return {"framework": "FastAPI", "status": "pure-python-fallback", "native": False}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def install_flask() -> dict:
|
|
58
|
+
"""Activate b4n1-boost acceleration for Flask (JSON acceleration)."""
|
|
59
|
+
if _NATIVE:
|
|
60
|
+
return _parse(py_install_flask())
|
|
61
|
+
return {"framework": "Flask", "status": "pure-python-fallback", "native": False}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def autoboost() -> dict:
|
|
65
|
+
"""Auto-detect the running framework and activate the appropriate boost."""
|
|
66
|
+
if _NATIVE:
|
|
67
|
+
return _parse(py_autoboost())
|
|
68
|
+
return {"framework": "auto", "status": "pure-python-fallback", "native": False}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def run_benchmarks(iterations: Optional[int] = None) -> dict:
|
|
72
|
+
"""Run the native hardware benchmark suite and return a structured report."""
|
|
73
|
+
if _NATIVE:
|
|
74
|
+
return _parse(py_run_benchmarks(iterations))
|
|
75
|
+
return {"status": "pure-python-fallback", "native": False}
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def status() -> dict:
|
|
79
|
+
"""Return the current b4n1-boost engine status."""
|
|
80
|
+
return {
|
|
81
|
+
"native_extension": _NATIVE,
|
|
82
|
+
"version": "0.1.0",
|
|
83
|
+
"features": ["json_acceleration", "orm_interception", "websocket_acceleration"],
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
__version__ = "0.1.0"
|
|
88
|
+
__all__ = [
|
|
89
|
+
"install_django",
|
|
90
|
+
"install_fastapi",
|
|
91
|
+
"install_flask",
|
|
92
|
+
"autoboost",
|
|
93
|
+
"run_benchmarks",
|
|
94
|
+
"status",
|
|
95
|
+
]
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: b4n1-boost
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: B4N1-BOOST — Transparent middleware accelerator for Django, FastAPI and Flask
|
|
5
|
+
Author-email: Bani Montoya <banimontoya@gmail.com>
|
|
6
|
+
License: BSL-1.1
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Dynamic: license-file
|
|
11
|
+
|
|
12
|
+
# b4n1-boost
|
|
13
|
+
|
|
14
|
+
Transparent native middleware acceleration layer for Python frameworks (Django, FastAPI, Flask, WSGI/ASGI).
|
|
15
|
+
|
|
16
|
+
## Performance Profile
|
|
17
|
+
|
|
18
|
+
- 🚀 **General Throughput Acceleration**: 3x to 11x faster request processing.
|
|
19
|
+
- ⚡ **JSON Serialization**: Up to 50x speedup over standard Python dynamic serialization.
|
|
20
|
+
|
|
21
|
+
## Intellectual Property & Licensing Terms
|
|
22
|
+
|
|
23
|
+
- **Original Source Code**: 100% Proprietary and Closed Source (**All Rights Reserved** by Bani Montoya). Source code in Rust is not publicly shared or distributed.
|
|
24
|
+
- **Public Native Binaries & SDK Modules**: Distributed under the unified **Business Source License 1.1 (BSL 1.1)**.
|
|
25
|
+
- **Free Usage**: 100% free for development, evaluation, testing, personal projects, and startups generating under **$100,000 USD** in annual gross revenue.
|
|
26
|
+
- **Mandatory Enterprise B2B License**: Required for government agencies, public bidding projects, and enterprise entities with annual gross revenue **>= $100,000 USD**.
|
|
27
|
+
|
|
28
|
+
For licensing inquiries and B2B commercial agreements, visit https://b4n1.com/licensing or contact `b4n1@b4n1.com`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b4n1_boost
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "b4n1-boost"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "B4N1-BOOST — Transparent middleware accelerator for Django, FastAPI and Flask"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = {text = "BSL-1.1"}
|
|
12
|
+
authors = [
|
|
13
|
+
{name = "Bani Montoya", email = "banimontoya@gmail.com"}
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
[tool.setuptools.packages.find]
|
|
17
|
+
where = ["."]
|
|
18
|
+
include = ["b4n1_boost*"]
|
|
19
|
+
|