Changelog
BustAPI Logo

BustAPI

The speed of Rust. The simplicity of Flask.

Get Started Tutorial

Rust-Powered Performance

Built on top of Actix-web via PyO3 bindings. BustAPI handles the heavy lifting of HTTP parsing and routing in optimized Rust code.

Type-Safe by Design

Leveraging Python's typing module, BustAPI enforces rigorous validation using Rust-based validators. Errors are caught early.

True Async Support

Designed for modern I/O-bound workloads. BustAPI runs on a dedicated Rust event loop, allowing efficient handling of concurrent connections.

Code that feels like home

from bustapi import BustAPI, Body
from bustapi.safe import Struct, String

class User(Struct):
    name: String
    email: String

app = BustAPI()

@app.post("/users")
async def create_user(user: User = Body(...)):
    # user is strictly validated!
    return {"message": f"Welcome, {user.name}!"}