databases
Async database support for Python.
Decision gist · record as of 2026-08-14
No. The repository is archived and abandoned, with no releases since 2024-03-01 and no active maintenance. While the package is stable and has low install friction, its unmaintained status means it will not receive bug fixes, security patches, or compatibility updates for future Python or database driver versions. For new projects, use actively maintained alternatives like SQLAlchemy's own async support (sqlalchemy.ext.asyncio) or other modern async ORMs.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8+; async context (e.g., within an async function or event loop); optional database drivers (asyncpg, aiosqlite, aiomysql, etc.) must be installed separately via extras.
- Low install friction with a single runtime dependency (sqlalchemy).
- However, the repository is archived and marked abandoned as of the fact sheet date, with no releases since 2024-03-01 and the last commit on 2024-05-21.
License · maintenance · safety
BSD (permissive) — BSD license (permissive) means you can use, modify, and distribute this package freely in both open-source and commercial projects with minimal restrictions.
last release 2024-03-01 (896 days) · last repo commit 2024-05-21 · 3,997 stars · archived
0 known vulnerabilities (OSV.dev, 2026-08-14) · 925,551 downloads/mo, #4,710 on PyPI
Alternatives
Verify before relying
pip install databases[aiosqlite]
from databases import Database
database = Database('sqlite+aiosqlite:///example.db')
await database.connect()
rows = await database.fetch_all(query='SELECT * FROM table')- Whether the abandoned status affects long-term compatibility with current async frameworks and database driver versions.
- Whether critical bug fixes or security patches are still being backported despite the archived repository status.
What it is and what it does
Databases is an async wrapper around SQLAlchemy Core that lets you execute database queries from async Python code. It abstracts over PostgreSQL, MySQL, and SQLite, accepting either raw SQL strings or SQLAlchemy Core expressions, and is built to pair with async web frameworks like FastAPI, Starlette, or aiohttp.
The package handles connection pooling and query execution in an async-friendly way, so your web handlers don't block on database I/O. You install it with a specific database driver extra (e.g., `databases[aiosqlite]` for SQLite), and then create a Database instance with a connection URL, connect to it, and call methods like `fetch_all()`, `fetch_one()`, or `execute()` with await.
Use it for
- Building FastAPI or Starlette applications that need non-blocking database queries without blocking the event loop.
- Running bulk inserts or updates asynchronously using execute_many() in web services.
- Prototyping async database access with SQLite during development before migrating to PostgreSQL or MySQL.
- Integrating SQLAlchemy Core expressions into async web handlers without rewriting query logic.
- Supporting multiple database backends (PostgreSQL, MySQL, SQLite) with a single async interface.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The repository is archived and abandoned, with no releases since 2024-03-01 and no active maintenance. While the package is stable and has low install friction, its unmaintained status means it will not receive bug fixes, security patches, or compatibility updates for future Python or database driver versions. For new projects, use actively maintained alternatives like SQLAlchemy's own async support (sqlalchemy.ext.asyncio) or other modern async ORMs.
Install
databases on PyPI
Before you install
Low install friction with a single runtime dependency (sqlalchemy). However, the repository is archived and marked abandoned as of the fact sheet date, with no releases since 2024-03-01 and the last commit on 2024-05-21. This signals the project is no longer actively maintained.
Requires Python 3.8+; async context (e.g., within an async function or event loop); optional database drivers (asyncpg, aiosqlite, aiomysql, etc.) must be installed separately via extras.
License in practice
BSD license (permissive) means you can use, modify, and distribute this package freely in both open-source and commercial projects with minimal restrictions.
Quickstart
pip install databases[aiosqlite]
from databases import Database
database = Database('sqlite+aiosqlite:///example.db')
await database.connect()
rows = await database.fetch_all(query='SELECT * FROM table')
Verify before relying
- Whether the abandoned status affects long-term compatibility with current async frameworks and database driver versions.
- Whether critical bug fixes or security patches are still being backported despite the archived repository status.
Package facts
| License | BSD permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagesqlalchemy |
| Maintenance | Abandoned 896 days since the last release |
| Last repo commit | repository archived |
| First released | |
| Downloads | 925,551 / month, #4,710 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaEnvironment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTP |
Evidence: databases-0.9.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “async database queries”
- databasesProvides async database access for PostgreSQL, MySQL, and SQLite…
- anysqliteAnysqlite wraps SQLite with an async/await interface that works with…
- aiosqliteaiosqlite provides an async interface to SQLite databases that…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also advanced-alchemy · aiomysql · aiosql · querysource · asyncpg · pysqlsync · ormar · aiopg · asyncmy · asyncpg-trek