Benchmark Results
Tested on October 11, 2026 · Higher RPS = better · Lower latency & error rate = better
| Framework | RPS | Avg Latency | Error % |
|---|---|---|---|
| Flask | 566.0 | 441ms | 1.4% |
| Django | 686.2 | 364ms | 8.5% |
| FastAPI | 946.5 | 264ms | 0.0% |
| Blacksheep | 1,657.6 | 150ms | 0.0% |
| Sanic | 4,708.9 | 53ms | 0.0% |
| TurboWeb-ASGI | 12,196.4 | 20ms | 0.0% |
| TurboWeb-WSGI | 22,553.5 | 11ms | 0.0% |
Notes
TurboWeb priortizes speed & performance and easy migration
Installation
pip install turboweb
Quick Start
from turboweb import TurboWeb, response
app = TurboWeb()
@app.route("/")
def index(req):
return response.json({"message": "Hello, TurboWeb!"})
@app.route("/user/<name>")
def greet(req, name):
return response.text(f"Hello, {name}!")
@app.route("/api/data", methods=["POST"])
async def api_data(req):
data = req.json
return response.json({"received": data})
if __name__ == "__main__":
app.run(host="0.0.0.0", port=8000)
ASGI
from turboweb import TurboWeb
app = TurboWeb(mode="asgi")
@app.route("/")
async def index(environ):
return {"host": "TurboWeb-ASGI"}
if __name__ == "__main__":
app.run(host="0.0.0.0", port=8000, mode="asgi")
Middleware
@app.middleware("request")
def log_request(req):
print(f"{req.method} {req.path}")
@app.middleware("response")
def add_header(req, resp):
resp.headers.append(("X-Custom-Header", "TurboWeb"))
return resp
CORS
app.cors(
allow_origins=["https://example.com"],
allow_methods=["GET", "POST"],
allow_headers=["Content-Type"],
allow_credentials=True
)
Static Files
app.static("/static", "./public")
Running with Workers
app.run(host="0.0.0.0", port=8000, workers=4)
Requirements
- Python 3.7+
- fastpysgi (installed automatically)
License
MIT License
Metadata
Release files for turboweb 26.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| turboweb-26.0.tar.gz | 17.1 kB | Without provenance | Details for turboweb-26.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| turboweb-26.0-cp310-cp310-win_amd64.whl | CPython 3.10 | CPython 3.10 | Windows x86-64 | Details for turboweb-26.0-cp310-cp310-win_amd64.whl |
Total release size: 40.1 kB
Release files / turboweb-26.0.tar.gz
| Download URL | turboweb-26.0.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
069484d2420aa994b1ac8ff4b28eea85b558bfed9c413f157707f2224ee01031
|
|
BLAKE2b-256 checksum How to use checksums |
22d19f7053017c8b8f681fa9ffe87b0ea1368ccfb084e92d223102c76077ff37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.8
|
Release files / turboweb-26.0-cp310-cp310-win_amd64.whl
| Download URL | turboweb-26.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 23.0 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
03ca2fc6b5a81737db533af2347e3fa2fc97b1c413d19a6fed8974171b5d4b89
|
|
BLAKE2b-256 checksum How to use checksums |
9028d81a77055dc0e691bd84cbf1f179b52f9b20b0dc9725cd0b67e47fba50b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.8
|
Security for turboweb 26.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.