SQLAlchemy
More info
- Creator
- Michael Bayer
- Released
- Type
- Python SQL toolkit + ORM
- License
- MIT
- Website
- sqlalchemy.org
Python's most used ORM — two layers: Core (SQL expression language, query builder) and ORM (classes to tables).
Famously does NOT try to hide SQL completely — you can freely mix raw SQL and ORM. 2.0 (2023) overhauled the API toward async + 2.0-style queries (select() instead of session.query()). Mike Bayer is the sole main developer for 18+ years. Standard in Flask, FastAPI, many Django projects that want away from Django's ORM. Competitors: Django ORM (more integrated), Peewee (lighter), Tortoise (async-first), SQLModel (FastAPI + Pydantic + SQLAlchemy).