1
sqlalchemy
Relational Databases
333,211,454
12,156
2026-09-14
Relational Databases
ORM
Database & Storage
→
The Python SQL Toolkit and Object Relational Mapper.
2
cachetools
Database & Storage
244,084,881
2,777
2026-08-31
Caching
Database & Storage
→
Extensible memoizing collections and decorators.
3
msgpack
Database & Storage
200,499,878
2,104
2026-09-02
Serialization
Database & Storage
→
MessagePack serializer implementation for Python.
4
redis
NoSQL Databases
200,282,742
13,640
2026-09-10
NoSQL Databases
Database Drivers
Database & Storage
→
The Python client for Redis.
5
orjson
Database & Storage
183,189,524
8,228
2026-08-14
Serialization
Database & Storage
→
Fast, correct JSON library.
6
psycopg
PostgreSQL
118,990,472
2,493
2026-09-14
PostgreSQL
Database Drivers
Database & Storage
→
The most popular PostgreSQL adapter for Python.
7
asyncpg
PostgreSQL
101,390,223
8,088
2026-02-27
PostgreSQL
Database Drivers
Database & Storage
→
A fast PostgreSQL Database Client Library for Python/asyncio.
8
marshmallow
Database & Storage
92,532,322
7,239
2026-09-11
Serialization
Database & Storage
→
A lightweight library for converting complex objects to and from simple Python datatypes.
9
pymysql
MySQL
78,418,328
7,842
2026-09-11
MySQL
Database Drivers
Database & Storage
→
A pure Python MySQL driver compatible to mysql-python.
10
pymongo
NoSQL Databases
71,914,977
4,355
2026-09-14
NoSQL Databases
Database Drivers
Database & Storage
→
The official Python client for MongoDB.
11
duckdb
Analytical
55,472,969
41,223
2026-09-14
Analytical
Database
Database & Storage
→
An in-process SQL OLAP database management system; optimized for analytics and fast queries, similar to SQLite but for analytical workloads.
12
peewee
Relational Databases
41,200,453
11,985
2026-09-14
Relational Databases
ORM
Database & Storage
→
A small, expressive ORM.
13
opensearch-py
Database & Storage
40,766,656
470
2026-09-03
Search
Database & Storage
→
The official low-level Python client for
OpenSearch .
14
elasticsearch
Database & Storage
39,129,042
4,386
2026-09-14
Search
Database & Storage
→
The official low-level Python client for
Elasticsearch .
15
pyodbc
Other Relational Databases
29,925,790
3,080
2026-06-06
Other Relational Databases
Database Drivers
Database & Storage
→
An ODBC bridge for connecting to SQL Server and any other ODBC-accessible database.
16
msgspec
Database & Storage
29,578,995
4,105
2026-09-14
Serialization
Database & Storage
→
A fast serialization and validation library with built-in support for JSON, MessagePack, YAML, and TOML.
17
clickhouse-connect
ClickHouse
26,286,001
521
2026-09-14
ClickHouse
Database Drivers
Database & Storage
→
The official ClickHouse client, with SQLAlchemy and Superset connectors.
18
diskcache
Database & Storage
25,904,607
2,906
2024-03-03
Caching
Database & Storage
→
SQLite and file backed cache backend with faster lookups than memcached and redis.
19
sqlmodel
Relational Databases
21,945,388
18,323
2026-09-01
Relational Databases
ORM
Database & Storage
→
SQLModel is based on Python type annotations, and powered by Pydantic and SQLAlchemy.
20
oracledb
Other Relational Databases
20,146,641
450
2026-09-10
Other Relational Databases
Database Drivers
Database & Storage
→
The official Python driver for Oracle Database, successor to cx_Oracle.
21
mysqlclient
MySQL
16,396,851
2,538
2026-09-11
MySQL
Database Drivers
Database & Storage
→
MySQL connector with Python 3 support (
mysql-python fork).
22
lancedb
Vector
13,101,865
11,423
2026-09-14
Vector
Database
Database & Storage
→
A developer-friendly embedded retrieval database for multimodal AI.
23
clickhouse-driver
ClickHouse
12,710,113
1,302
2026-07-22
ClickHouse
Database Drivers
Database & Storage
→
Python driver with native interface for ClickHouse.
24
chromadb
Vector
8,169,755
29,300
2026-09-14
Vector
Database
Database & Storage
→
An open-source embedding database for building AI applications with embeddings and semantic search.
25
cassandra-driver
NoSQL Databases
4,253,953
1,427
2026-07-21
NoSQL Databases
Database Drivers
Database & Storage
→
The Python Driver for Apache Cassandra.
26
hishel
Database & Storage
3,769,785
411
2026-09-09
Caching
Database & Storage
→
RFC 9111 compliant HTTP caching for httpx and requests, with sync and async support.
27
tinydb
Key-Value & Document
3,405,305
7,564
2026-08-10
Key-Value & Document
Database
Database & Storage
→
A tiny, document-oriented database.
28
mssql-python
Other Relational Databases
3,038,137
469
2026-09-14
Other Relational Databases
Database Drivers
Database & Storage
→
Official Microsoft driver for SQL Server and Azure SQL, built on ODBC for high performance and low memory usage.
29
chdb
Analytical
3,013,729
2,897
2026-09-14
Analytical
Database
Database & Storage
→
In-process OLAP SQL engine with the full ClickHouse dialect, zero-copy pandas/Arrow interop, and federation to remote ClickHouse clusters via remoteSecure().
30
pynamodb
NoSQL Databases
2,945,719
2,646
2026-04-24
NoSQL Databases
ORM
Database & Storage
→
A Pythonic interface for
Amazon DynamoDB .
31
dogpile.cache
Database & Storage
1,875,530
298
2026-08-11
Caching
Database & Storage
→
dogpile.cache is a next generation replacement for Beaker made by the same authors.
32
mongoengine
NoSQL Databases
1,834,668
4,349
2026-09-06
NoSQL Databases
ORM
Database & Storage
→
A Python Object-Document-Mapper for working with MongoDB.
33
django-cacheops
Database & Storage
1,733,642
2,274
2026-04-15
Caching
Database & Storage
→
A slick ORM cache with automatic granular event-driven invalidation.
34
beanie
NoSQL Databases
1,338,493
2,699
2026-08-31
NoSQL Databases
ORM
Database & Storage
→
An asynchronous Python object-document mapper (ODM) for MongoDB.
35
sqlite-utils
SQLite
950,402
2,168
2026-09-02
SQLite
Database Drivers
Database & Storage
→
Python CLI utility and library for manipulating SQLite databases.
36
meilisearch
Database & Storage
791,711
603
2026-08-28
Search
Database & Storage
→
The official Python client for the
Meilisearch search engine.
37
django-haystack
Database & Storage
179,841
3,732
2026-09-12
Search
Database & Storage
→
Modular search for Django.
38
zvec
Vector
46,903
15,921
2026-09-14
Vector
Database
Database & Storage
→
An embedded vector database for on-device RAG and edge AI, the SQLite of vector databases.
39
django-mongodb-backend
NoSQL Databases
32,795
228
2026-09-01
NoSQL Databases
Database Drivers
Database & Storage
→
Official MongoDB database backend for Django.
40
django.db.models
Relational Databases
Bundled
91,064
2026-09-14
Relational Databases
ORM
Database & Storage
→
(part of Django) The Django
ORM .
41
sqlite3
SQLite
Stdlib
77,167
2026-09-14
SQLite
Database Drivers
Database & Storage
Stdlib
→
(Python standard library) SQLite interface compliant with DB-API 2.0.