ORMs and Query Builders
Work with databases using Python classes instead of raw SQL.
Intermediate
This is an overview — pick a sub-topic below.
Sub-topics (5)
SQLAlchemy
The most powerful Python SQL toolkit and ORM.
Intermediate♥ 0🔖 0💬 0
SQLModel
SQLAlchemy + Pydantic in one model class — made for FastAPI.
Easy♥ 0🔖 0💬 0
Django ORM
Django's built-in ORM with models, querysets and migrations.
Easy♥ 0🔖 0💬 0
Peewee, Pony ORM, Tortoise ORM and MongoEngine
Lighter or specialised ORMs: Peewee (small), Pony (generator queries), Tortoise (async), MongoEngine (MongoDB documents).
Intermediate♥ 0🔖 0💬 0
Alembic
Database migrations for SQLAlchemy.
Intermediate♥ 0🔖 0💬 0
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.