The Ultra-High Performance Python Web Framework
Powered by Rust. Designed for Python. Built for the Future.
BustAPI isn't just another web framework. It's a hybrid engine that fuses the developer experience of Python with the raw performance of Rust.
By running on top of Actix-Web (Rust) via PyO3 bindings, BustAPI eliminates the bottlenecks typical of Python frameworks. It handles requests, routing, and concurrency in compiled Rust code, leaving Python to do what it does best: business logic.
"It feels like Flask/FastAPI, but runs like a compiled binary."
- ~20k RPS: Capable of handling massive loads on a single node.
- Zero-Process Overhead: Efficient, low-latency request handling.
- Native Async: Built on Tokio, the industry-standard Rust async runtime.
- Smart Worker Pool: Rust manages the thread pool, automatically scaling to your CPU cores.
- Hot Reload: Instant feedback loop with
watchfilesintegration. - Type-Safe: Built with modern Python typing in mind.
- Auto-Docs: Interactive Swagger/OpenAPI documentation generated automatically.
Install the core framework:
pip install bustapiInstall with standard server compatibility (Uvicorn, Gunicorn, Hypercorn):
pip install "bustapi[server]"Or go full throttle with all dev tools and benchmarks:
pip install "bustapi[full]"Create main.py:
from bustapi import BustAPI
app = BustAPI()
@app.route("/")
def home():
return {"message": "Welcome to the future 🚀"}
@app.route("/users/<int:user_id>")
def get_user(user_id):
return {"id": user_id, "status": "active"}
if __name__ == "__main__":
# Hot reload enabled!
app.run(debug=True)Run it:
python main.pyVisit http://127.0.0.1:5000 and confirm your entry into high-speed web development.
BustAPI is flexible. Use the ultra-fast internal Rust server, or bring your own.
Optimized for raw speed.
python main.pyuvicorn main:app.asgi_app --interface asgi3gunicorn main:app- Rate Limiting: Built-in, high-performance rate limiter protected by Rust.
- Middleware: Simple
@app.before_requestand@app.after_requesthooks. - Blueprints: Organizing extensive applications with ease.
- Templates: Integrated Jinja2 support.
- Security: Robust headers and CORS support out of the box.
- FastAPI Compatibility: Migrate easily with
Header,Cookie,Form,File, andUploadFilesupport. - Context Globals: Full support for Flask-style
gandcurrent_appproxies. - Background Tasks: Fire-and-forget tasks with
BackgroundTasks. - Response Aliases: Use
JSONResponse,HTMLResponse, etc., just like in FastAPI.
| Framework | Requests/Sec | Relative Speed | Memory (RAM) |
|---|---|---|---|
| BustAPI (v0.5) | 25,782 | 🚀 100% | ~24 MB |
| Catzilla (v0.2) | 15,727 | 💨 61% | ~718 MB |
| Flask (4 workers) | 6,869 | 🐢 27% | ~160 MB |
| FastAPI (4 workers) | 1,867 | 🐢 7% | ~237 MB |
(Benchmarks run on Python 3.13, Intel i5-8365U, 8 Cores, Ubuntu Linux)
Join us in building the fastest Python framework ever created.
- Issues: Report bugs or request features.
- Discussions: Ask questions and share ideas.
MIT © 2025 GrandpaEJ.
