Skip to content
whichdevtool?
Categories ▾

Frameworks and UI

Frontend and full-stack frameworks Backend frameworks UI component libraries

Hosting

VPS and cloud servers App hosting and PaaS

Data

Managed databases File and object storage ORMs and database toolkits

AI

AI model APIs

Email

Transactional email APIs Email marketing and newsletters

Payments

Payments and billing

Domains and edge

Domain registrars CDN, DNS and edge security

Operations and identity

Monitoring, uptime and error tracking Auth and identity Background jobs, queues and workflows
Stacks Directory
Ctrl K

Search directory
Menu
StacksDirectory Pricing changes Glossary
VPS and cloud servers App hosting and PaaS Managed databases Transactional email APIs Email marketing and newsletters Domain registrars CDN, DNS and edge security Monitoring, uptime and error tracking Auth and identity Frontend and full-stack frameworks Backend frameworks UI component libraries AI model APIs File and object storage Payments and billing Background jobs, queues and workflows ORMs and database toolkits
  1. Home
  2. ORMs and database toolkits
  3. Peewee
Pe

Small Python ORM · by Charles Leifer

Peewee

Small, single-module Python ORM with no required dependencies, an expressive query builder, asyncio support since 4.0 and diff-based migrations, maintained by one author since 2010.

Visit github.com ↗ Alternatives Open source Open source Self-hostable
github.com
Peewee homepage
§1

Overview

Peewee has been written and maintained by Charles Leifer since 2010. It is a single module with no required dependencies: SQLite works through the standard library, and extras install drivers for MySQL, PostgreSQL (psycopg2 or psycopg3) and async drivers. Models look like Django's, and queries compose with Python operators, joins, subqueries, window functions and CTEs.

The playhouse package adds extensions: SQLite user-defined functions and full-text search, connection pooling, reflection, shortcuts to and from dicts, and a migrations module. The changelog describes playhouse.migrations with a pwmigrate CLI that can create, generate and diff migrations and run up and down scripts, including per-schema history.

Version 4.0.0, released on 20 February 2026, added asyncio support via a greenlet bridge (AsyncDatabaseMixin.run and helpers such as aget and asave) on aiosqlite, asyncpg and aiomysql; a later release marked the async API as stable. Because one person maintains nearly all of it, direction and priorities follow the author's judgement.

§2

Pricing and plans

Plan Price What you get
Peewee $0 MIT licence

Free and open source under the MIT licence; there is no paid product.

Source: github.com/coleifer/peewee · prices as published, excluding tax.

§3

What it does

Single module
No required dependencies; SQLite support comes from the standard library.
Expressive queries
Composable select, join, subquery, window function and CTE support using Python operators.
Asyncio support
Since 4.0, async helpers run Peewee code over asyncpg, aiomysql or aiosqlite through greenlet.
Migrations
playhouse.migrations and the pwmigrate CLI create, generate, diff and apply migration scripts.
SQLite extensions
User-defined functions, full-text search, JSON and other SQLite-specific features in the playhouse.
§4

Strengths and limitations

Strengths

  • Small and quick to learn
  • Very good SQLite support
  • No required dependencies
  • Long, steady maintenance history

Limitations

  • Maintained almost entirely by one person
  • Async support is a greenlet bridge over synchronous code, not a native async ORM
  • Supports only SQLite, MySQL/MariaDB and PostgreSQL in core; no SQL Server or Oracle
  • Smaller ecosystem of framework integrations than SQLAlchemy
§5

Who it suits

Good for

  • Scripts, CLIs and small web apps
  • SQLite-based desktop or embedded projects
  • Flask apps that want something lighter than SQLAlchemy

Look elsewhere if

  • Enterprise apps needing SQL Server or Oracle
  • Large teams that want a project with many maintainers
§6

Pricing history

  • 20 Feb 2026

    Peewee 4.0 adds asyncio support

    Peewee 4.0.0 added an asyncio layer built on greenlet for aiosqlite, asyncpg and aiomysql; a later release marked it stable. Source ↗

§7

Alternatives to Peewee

Tool From Free option Stages
GO
GORM Full-featured Go ORM
— Open source
KJ
Knex.js JavaScript SQL query builder
— Open source
SO
SeaORM Async dynamic ORM for Rust
— Open source
Prisma ORM Schema-first TypeScript ORM
$10/mo Free tier
Bu
Bun (Go ORM) SQL-first Go ORM
— Open source
Drizzle ORM SQL-like TypeScript ORM
— Open source

All ORMs and database toolkits →

§8

Questions

Does Peewee support async?

Yes, since version 4.0 (February 2026) through a greenlet-based asyncio layer with aiosqlite, asyncpg and aiomysql.

Does Peewee have migrations?

Yes. The playhouse migrations module and pwmigrate CLI create, generate and apply migration scripts.

Which databases does Peewee support?

SQLite, MySQL, MariaDB and PostgreSQL, with an extension for CockroachDB.

Sources read for this page

  • https://github.com/coleifer/peewee
  • https://github.com/coleifer/peewee/blob/master/CHANGELOG.md
  • https://github.com/coleifer/peewee/releases/tag/4.0.0
  • http://docs.peewee-orm.com/en/4.0.0/peewee/asyncio.html
Spec sheet
From
Open source
Free tier
Free to self-host
Stages
HobbyIndieStartupScale-upEnterprise Suits hobby, indie, startup
Language
Python
Approach
Full ORM with query builder
Databases
SQLite, MySQL, MariaDB, PostgreSQL
Migrations
Yes, pwmigrate with diff-based generation
Open source
Yes
Self-host
Yes
EU data
Not stated
Category
ORMs
Visit github.com ↗

To report an out-of-date price or limit, use the correction form.

whichdevtool?

Developer and cloud tools compared on price, free tier and limits, each with its source. For side projects, solo developers and small teams.

Categories

  • VPS and cloud servers
  • App hosting and PaaS
  • Managed databases
  • Transactional email APIs
  • Email marketing and newsletters
  • Domain registrars
  • CDN, DNS and edge security
  • Monitoring, uptime and error tracking
  • Auth and identity
  • Frontend and full-stack frameworks
  • Backend frameworks
  • UI component libraries
  • AI model APIs
  • File and object storage
  • Payments and billing
  • Background jobs, queues and workflows
  • ORMs and database toolkits

Research

  • Directory
  • Stacks by project
  • Developer news
  • Pricing changes
  • Glossary

Site

  • About and methods
  • How we make money
  • Suggest a tool or fix
  • Privacy
© 2026 whichdevtool.com Prices change. Each tool page links to its source. We may earn a commission when you sign up through links on this site. How we make money