--- title: JustAPI description: Python web framework powered by Rust. 766k req/s hello-world. FastAPI-compatible API, zero-config OpenAPI. template: splash ---
 v2.0.9 · published on PyPI · 8 platforms

Python writes the logic.
Rust does everything else.

JustAPI is a Python web framework with a Rust core. One import, zero config — routing, TLS, validation, serialization and the server itself run in Rust.

 Get Started  GitHub
## Performance
766k
req/s hello-world
782k
req/s JSON echo
2.4x
faster than Granian
53x
native async DB
181k
native CRUD SELECT
12MB
resident memory
## Quick start
```bash pip install justapi python main.py # ✓ JustAPI running on http://127.0.0.1:8000 ```
## Minimal app
 main.py
from justapi import JustAPIApp

app = JustAPIApp()

@app.get("/")
def hello():
    return {"Hello": "World"}

app.run()
server started · /docs · /redoc · OpenAPI auto
## Benchmarks
JustAPI
766k
Granian
314k
Robyn
39k
FastAPI
36k
hello-world, 100 concurrent connections, 30s, same hardware — full methodology in BENCHMARKS.md
## Features

Rust core

Networking, TLS, routing, serialization run in Rust. Python executes only your logic.

Native async DB

await app.db.query_async() runs SQL on Rust's tokio runtime — 53× faster on slow queries.

Rust-native SSE

app.sse_native() streams events with zero Python per event.

Multi-worker

justapi serve --workers N — 1.88× throughput at 4 workers, auto-scale.

Free-threaded

CPython 3.14t wheels — CPU-bound Python scales with cores, 12.4× measured.

Security built-in

JWT, rate limiting, CORS, security headers — all in Rust middleware.

Production-ready

Circuit breakers, OTel tracing, Prometheus metrics, health checks.

Type-checked

py.typed + complete stubs — mypy-clean on user code.

FastAPI-compatible

Same decorators, Pydantic models, Depends. Migrate with one import.

## Framework comparison | | FastAPI | JustAPI | |---|---|---| | **Server** | uvicorn (Python) | Rust (tokio + hyper) | | **Hello-world** | ~36k req/s | **~766k req/s** | | **JSON echo** | ~33k req/s | **~782k req/s** | | **Native DB SELECT** | Python driver | **181k req/s (×125)** | | **Memory** | 29 MB | **12 MB** |

Ready to build something fast?

One import. Rust underneath. Zero config.

 Get Started