coleifer/peewee
a small, expressive orm -- supports postgresql, mysql, sqlite, now with asyncio observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 99
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 11
- age_days: 5805
- days_rel: 10
- days_push: 7
- n_releases_24m: 30
Adoption not part of the score
11986 stars · 1382 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Peewee is a small, expressive Python ORM with a flexible query builder that supports SQLite, MySQL/MariaDB, and PostgreSQL, plus asyncio backends. It is a single dependency-free module in production use since 2010, with schema migrations and framework integrations for Flask, FastAPI, and Pydantic.
Use cases
- define database models and query tables in python
- use an orm with sqlite in a small python app
- add postgresql or mysql persistence to a flask or fastapi app
- run async database queries with asyncio
- generate and run schema migrations for a python project
- write raw sql with a lightweight query builder
- avoid heavy orms like sqlalchemy for simple projects
When to choose
- you want a lightweight, easy-to-learn ORM with no required dependencies
- your app uses SQLite, MySQL/MariaDB, or PostgreSQL in Python
- you need asyncio database access built on standard async drivers
- you want expressive query building while retaining full SQL power
When to avoid
- you need a multi-database ORM with advanced features like SQLAlchemy's ecosystem
- you require an async-first ORM with deep async ecosystem integration
- you need databases beyond the DB-API 2.0 drivers Peewee supports
Facets
library · maturity stable
orm database-driver database databases web-development backend developer-tools python cross-platform query-builder asyncio sqlite postgresql mysql schema-migrations flask fastapi
6 sources
- readme: https://github.com/coleifer/peewee · fetched 2026-08-28 · dacefae03969
- homepage: http://docs.peewee-orm.com/ · fetched 2026-08-29 · 12b7ce5155ca
- site_page: http://docs.peewee-orm.com/en/latest/peewee/quickstart.html · fetched 2026-08-29 · 1c57be68322e
- site_page: http://docs.peewee-orm.com/en/latest/peewee/installation.html · fetched 2026-08-29 · fec4a96a9a73
- site_page: http://docs.peewee-orm.com/en/latest/peewee/asyncio.html · fetched 2026-08-29 · b9f549bdaf5a
- registry_pypi: https://pypi.org/pypi/peewee/json · fetched 2026-08-29 · 52b57c4ed66b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| coleifer/peewee | main | 99 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem