peewee
a little orm
Install
peewee on PyPI
pip
pip install peeweeuv
uv add peeweepoetry
poetry add peeweePackage facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 13 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: peewee-4.3.0-py3-none-any.whl
About peewee
from the package's own PyPI description — quoted content, verbatim
.. image:: https://media.charlesleifer.com/blog/photos/peewee4-logo.png
peewee
Peewee is a simple and small ORM. It has few (but expressive) concepts, making it easy to learn and intuitive to use.
Peewee is a single module with no required dependencies and has been running production workloads of all sizes since 2010.
- a small, expressive ORM
- flexible query-builder that exposes full power of SQL
- supports sqlite, mysql, mariadb, postgresql
asyncio support <https://docs.peewee-orm.com/en/latest/peewee/asyncio.html>__ built on the standard async drivers (aiosqlite, asyncpg, aiomysql)- tons of extensions
- use with
flask <https://docs.peewee-orm.com/en/latest/peewee/framework_integration.html#flask>,fastapi <https://docs.peewee-orm.com/en/latest/peewee/framework_integration.html#fastapi>,pydantic <https://docs.peewee-orm.com/en/latest/peewee/orm_utils.html#module-playhouse.pydantic_utils>, andmore <https://docs.peewee-orm.com/en/latest/peewee/framework_integration.html>.
New to peewee? These may help:
Quickstart <https://docs.peewee-orm.com/en/latest/peewee/quickstart.html#quickstart>_- `Example twitter app...
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Peewee is a lightweight ORM that maps Python classes to database tables, supporting SQLite, MySQL, MariaDB, and PostgreSQL with optional asyncio support through standard async drivers.
Installation is frictionless—peewee is a pure-Python wheel with zero runtime dependencies and has maintained active development since 2010, with a recent release 13 days ago.
License treatment is unclear; the fact sheet does not specify a license identifier, so you should verify the actual license terms before adopting peewee in a commercial or restricted context.
Usage
pip install peewee
from peewee import *
db = SqliteDatabase('my_database.db')
class User(Model):
username = CharField()
class Meta:
database = db
db.create_tables([User])
user = User.create(username='alice')
Python 3.8 or later required; asyncio features require additional optional dependencies (aiosqlite, asyncpg, or aiomysql).
Verdict: Peewee is a mature, actively maintained ORM with no dependencies and broad database support, making it a low-friction choice for projects needing a simple query layer. However, verify the license terms before use, as the fact sheet does not clarify the license under which it is distributed.
Needs verification
- What is the actual license under which peewee is distributed (MIT, Apache, GPL, or other)?
- Are there any known security advisories or CVEs not yet indexed in OSV?
Similar packages
permissive · top 1,000 on PyPI
Flask-SQLAlchemypermissive · top 1,000 on PyPI
psycopgcopyleft · top 1,000 on PyPI
SQLAlchemypermissive · top 100 on PyPI
psycopg-poolcopyleft · top 1,000 on PyPI
logfirepermissive · top 1,000 on PyPI
PyMySQLpermissive · top 1,000 on PyPI
mysqlclientcopyleft · top 1,000 on PyPI
flask-corspermissive · top 1,000 on PyPI
python-pptxpermissive · top 1,000 on PyPI