Skip to content

BustAPI

BustAPI Logo

High-performance Python web framework with Rust backend

Get Started GitHub


What is BustAPI?

BustAPI is a Flask-compatible Python web framework powered by Actix-web (Rust). You write normal Python code, and BustAPI handles requests with Rust-level performance.

Python
from bustapi import BustAPI

app = BustAPI()

@app.route("/")
def hello():
    return {"message": "Hello, World!"}

@app.route("/users/<int:id>")
def get_user(id: int):
    return {"id": id, "name": f"User {id}"}

if __name__ == "__main__":
    app.run(debug=True)

Features

  • Flask-like API - Familiar decorators: @app.route(), @app.get(), @app.post()
  • Rust Performance - Fast HTTP parsing via Actix-web
  • Turbo Routes - @app.turbo_route() for high-throughput endpoints
  • Multiprocessing - workers=4 for parallel request handling on Linux
  • JWT Authentication - Built-in token-based auth
  • Templates - Jinja2 template rendering
  • Blueprints - Modular app organization

Performance

Benchmarked with wrk -t4 -c50 -d10s on Python 3.13, Intel i5 (4 cores):

Endpoint Linux (4 workers) macOS Windows
/ (turbo) 105,012 RPS 35,560 RPS 17,772 RPS
/json (turbo) 99,142 RPS 27,532 RPS 17,844 RPS

Best Performance

Use Linux for production to enable SO_REUSEPORT multiprocessing.


Installation

Bash
pip install bustapi

Supports Python 3.10 - 3.14 on Linux, macOS, and Windows.


Next Steps