15 best Python Database libraries in 2025
by marketing.admin@openweaver.com Updated: Feb 14, 2023
Guide Kit
The Python database libraries are a set of packages that abstract away the complexity of database access, so you can focus on what your application requires. SQLmap is an open source tool that automates the process of finding vulnerabilities in web applications by listening on port 80 and searching for specific strings in web pages. It can be used to find any type of issue in the database and even inject commands into the application, resulting in a successful exploitation. But there are other tools like edgedb or sqlmodel that can help you automate the entire process of finding vulnerabilities in your database. Popular open source Python database libraries among developers include
sqlmapby sqlmapproject
Automatic SQL injection and database takeover tool
sqlmapby sqlmapproject
Python
27305
Version:1.7
License: Others (Non-SPDX)
fashion-mnistby zalandoresearch
A MNIST-like fashion product database. Benchmark :point_down:
fashion-mnistby zalandoresearch
Python
10843
Version:Current
License: Permissive (MIT)
qby harelba
q - Run SQL directly on delimited files and multi-file sqlite databases
qby harelba
Python
9880
Version:latest
License: Strong Copyleft (GPL-3.0)
edgedbby edgedb
A graph-relational database with declarative schema, built-in migration system, and a next-generation query language
edgedbby edgedb
Python
11190
Version:v2.12
License: Permissive (Apache-2.0)
sqlmodelby tiangolo
SQL databases in Python, designed for simplicity, compatibility, and robustness.
sqlmodelby tiangolo
Python
10021
Version:0.0.8
License: Permissive (MIT)
mindsdbby mindsdb
MindsDB is a Server for Artificial Intelligence Logic. Enabling developers to ship AI powered projects to production in a fast and scalable way.
mindsdbby mindsdb
Python
16605
Version:v23.6.3.1
License: Strong Copyleft (GPL-3.0)
asyncpgby MagicStack
A fast PostgreSQL Database Client Library for Python/asyncio.
asyncpgby MagicStack
Python
6034
Version:v0.27.0
License: Permissive (Apache-2.0)
sqlalchemyby sqlalchemy
The Database Toolkit for Python
sqlalchemyby sqlalchemy
Python
7352
Version:rel_2_0_16
License: Permissive (MIT)
tinydbby msiemens
TinyDB is a lightweight document oriented database optimized for your happiness :)
tinydbby msiemens
Python
5899
Version:v4.7.1
License: Permissive (MIT)
bigchaindbby bigchaindb
Meet BigchainDB. The blockchain database.
bigchaindbby bigchaindb
Python
3974
Version:v2.2.2
License: Permissive (Apache-2.0)
dj-database-urlby jacobian
Use Database URLs in your Django Application.
dj-database-urlby jacobian
Python
1184
Version:Current
License: Permissive (BSD-2-Clause)
safety-dbby pyupio
A curated database of insecure Python packages
safety-dbby pyupio
Python
636
Version:Current
License: Others (Non-SPDX)
django-db-mailerby LPgenerator
Django module to easily send emails/sms/tts/push using django templates stored on database and managed through the Django Admin
django-db-mailerby LPgenerator
Python
241
Version:2.4.0
License: Strong Copyleft (GPL-2.0)
db-to-sqliteby simonw
CLI tool for exporting tables or queries from any SQL database to a SQLite file
db-to-sqliteby simonw
Python
292
Version:1.5
License: Permissive (Apache-2.0)
osrsbox-dbby osrsbox
A complete and up-to-date database of Old School Runescape (OSRS) items, monsters and prayers
osrsbox-dbby osrsbox
Python
194
Version:Current
License: Strong Copyleft (GPL-3.0)