Packages

ORMs & Query Builders Packages

Object-relational mappers and SQL query builders that turn database access into type-safe, maintainable code (Prisma, SQLAlchemy, Drizzle).

116 packages

Packages in ORMs & Query Builders

93Health
Library PyPI

SQLAlchemy

The Python SQL toolkit and Object Relational Mapper that gives developers the full power and flexibility of SQL.

12,189
MIT
Used by 43
89Health
Tool PyPI

Alembic

Database migrations tool for SQLAlchemy with autogenerate and transactional DDL

4,413
MIT
Used by 27
87Health
Framework PyPI

Django

The high-level Python web framework that turns database models into secure, working web applications in record time.

91,218
BSD 3
Used by 24
55Health
Library PyPI

Flask-SQLAlchemy

The official SQLAlchemy integration for Flask, adding scoped sessions, multi-database binds, and Flask-aware model conventions.

4,307
BSD 3
Used by 5
88Health
Library PyPI

SQLModel

One model for SQLAlchemy and Pydantic, built by the creator of FastAPI to kill duplicate schema code.

18,345
MIT
Used by 4
84Health
Library Cargo

Apache DataFusion

The extensible, Arrow-native SQL and DataFrame query engine for building fast analytical systems in Rust.

9,369
Apache 2.0
Used by 4
95Health
Library PyPI

peewee

A small, expressive Python ORM with asyncio support for SQLite, MySQL, and PostgreSQL.

11,993
MIT
Used by 2
49Health
Library PyPI

prisma-client-py

Auto-generated, fully type-safe Python database client built on Prisma's schema and Rust query engine.

2,093
Apache 2.0
Used by 2
63Health
Library PyPI

duckdb_engine

A SQLAlchemy dialect that lets existing SQLAlchemy code query and manage DuckDB databases unmodified.

497
MIT
Used by 2
86Health
Library PyPI

Ibis

A portable Python dataframe library with a lazy expression API across 20+ backends.

6,668
Apache 2.0
Used by 1
49Health
Library PyPI

PyPika

A Python SQL query builder that constructs expressive, vendor-flexible SQL using a fluent builder API.

2,926
Apache 2.0
Used by 1
81Health
Library PyPI

beanie

Async Python ODM for MongoDB built on Pydantic, with pythonic queries, document links, caching, and schema migrations.

2,702
Apache 2.0
Used by 1
55Health
Library PyPI

PynamoDB

A Pythonic, ORM-style interface to Amazon's DynamoDB.

2,646
MIT
Used by 1
53Health
Library PyPI

PyHive

Python DB-API and SQLAlchemy interfaces for querying Apache Hive, Presto, and Trino.

1,692
Apache 2.0
Used by 1
79Health
Library PyPI

Redis OM Python

Declarative object mapping, validation, and rich querying for Redis in Python.

1,316
MIT
Used by 1
72Health
Library PyPI

django-treebeard

Efficient tree-structured models for Django, with three interchangeable storage backends behind one manager API.

1,220
Apache 2.0
Used by 1
42Health
Library PyPI

SQLAlchemy-JSON

Mutation-tracked JSON column types for SQLAlchemy, including deeply nested changes.

195
Other
Used by 1
75Health
SDK PyPI

scylla-driver

Modern, highly tunable Python client for ScyllaDB and Apache Cassandra over CQL

82
Apache 2.0
Used by 1

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers