Pure Python web framework using free-threaded Python
Free-threaded Python beats async FastAPI +435% on CPU work—paradigm shift, not toy.
Free-threaded HTTP library
Free-threaded Python matches FastAPI's I/O throughput at 4x lower complexity.
Python backend developers experimenting with free-threaded Python 3.13+
FastAPI · uvicorn · Starlette
I built a small HTTP framework to experiment with free-threaded and wanted to share some observations. Barq is ~500 lines of pure Python, no C extensions, no Rust, no Cython. It uses only the standard library plus Pydantic.
Benchmarks (Barq 4 threads vs FastAPI 4 worker processes):
- JSON: Barq 10,114 req/s vs FastAPI 5,665 req/s → Barq +79%
- DB query: Barq 9,962 req/s vs FastAPI 1,015 req/s → Barq +881%
- CPU bound: Barq 879 req/s vs FastAPI 1,231 req/s → FastAPI +29%
Free-threaded Python beats async FastAPI +435% on CPU work—paradigm shift, not toy.
Multi-threaded video capture fixes OpenCV's standard blocking I/O bottleneck for Python pipelines.
Requests is frozen—this adds HTTP/3 and async without breaking your code.
Keyboard-driven video messaging in a space Loom and Slack already own.
Hand-coded parser beats established libraries on speed but remains alpha quality.
Open-source CFR poker agent when PioSolver and GTO+ cost hundreds.