Peewee 4.x adds native asyncio support via greenlets to execute_sql, unified cross-backend JSONField, and declarative relation eager-loading—enabling true async/await with FastAPI without threadpool workarounds.
July 7, 2026
Summary
Eliminates forced sync-to-async bridges (threadpools, sync_to_async serialization) that block concurrent request handling. Developers can now write fully async FastAPI apps with ORM queries that actually await cleanly on the event loop.
Why it matters
Eliminates forced sync-to-async bridges (threadpools, sync_to_async serialization) that block concurrent request handling. Developers can now write fully async FastAPI apps with ORM queries that actually await cleanly on the event loop.
Implementation verdict
Replaces backend-specific playhouse JSON extensions and sync-only query patterns. Requires Postgres 9.2+/MySQL 8/SQLite 3.38+ and explicit AsyncPostgresqlDatabase/AsyncMysqlDatabase imports. Ready now—stable release with full FastAPI/Starlette/Quart integration patterns documented.
Sources
Dev Signal
Get briefs like this in your inbox — free, every weekday.
100+ sources compressed into one 4-minute read. Ranked, cited, implementation-ready.