Peewee is a simple and small ORM. It has few (but expressive) concepts, making it easy to learn and intuitive to use.

  • a small, expressive ORM

  • python 2.7+ and 3.4+

  • supports sqlite, mysql, mariadb, postgresql and cockroachdb

  • tons of extensions

postgresql mysql mariadb sqlite cockroachdb

Peewee’s source code hosted on GitHub.

New to peewee? These may help:



If you find any bugs, odd behavior, or have an idea for a new feature please don’t hesitate to open an issue on GitHub or contact me.

Indices and tables