anysqlite
What it is and what it does
Anysqlite provides an async/await wrapper around Python's standard sqlite3 library, allowing you to execute SQLite queries without blocking your async event loop. It abstracts over both asyncio and trio backends using anyio, so you can use the same code regardless of which async framework you've chosen.
The package is designed for developers building async applications that need local SQLite database access. It exposes familiar sqlite3 methods like connect(), execute(), and fetchone() but as coroutines, so they integrate naturally into async/await code. With only anyio as a runtime dependency and support for Python 3.8 through 3.12, it has minimal friction to install.
Use it for:
- Building async web applications that need local SQLite storage without blocking the event loop
- Writing async CLI tools or daemons that query a local SQLite database
- Testing async code that requires database fixtures, using in-memory SQLite databases
- Migrating asyncio code to trio (or vice versa) while keeping the same database layer
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Anysqlite wraps SQLite with an async/await interface that works with both asyncio and trio, letting you query SQLite databases without blocking your async code.
Yes, if you need async SQLite access in a trio or asyncio project and can tolerate a package in beta with no recent releases. The low install friction, single lightweight dependency, and lack of known vulnerabilities make it safe to try. However, verify the license status before using in production or redistribution.
Install
anysqlite on PyPI
pip
pip install anysqliteuv
uv add anysqlitepoetry
poetry add anysqliteInstalling anysqlite
Before you install
Installation is straightforward with no compiled dependencies. The package is in beta status and has not been updated since its initial release in October 2023, though the repository remains active.
License in practice
No license information is declared in the package metadata, making the legal status unclear for redistribution or commercial use.
Quickstart
pip install anysqlite
import anysqlite
conn = await anysqlite.connect(":memory:")
cursor = await conn.execute("SELECT DATETIME()")
response = await cursor.fetchone()
Requires Python 3.8 or later; must be called within an async context (asyncio or trio event loop)
Verify before relying
- Whether the package is actively maintained or in maintenance-only mode given the gap between latest release and recent repo activity
- What license applies to the code, given the absence of declared licensing in metadata
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — anyio |
| Maintenance | aging — 1,047 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,355,634/month — #3,110 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: anysqlite-0.0.5-py3-none-any.whl
Tags
More Database packages
psycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
redisPython client library for connecting to and…
permissive · top 1,000 on PyPI
ydbYDB Python SDK is the official client library…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
sqlparsesqlparse tokenizes SQL text into a tree of…
permissive · top 1,000 on PyPI
dbt-adaptersProvides base adapter protocols and shared…
permissive · top 1,000 on PyPI
aiosqliteaiosqlite provides an async interface to SQLite…
permissive · top 1,000 on PyPI
sqlite-anyioProvides an asynchronous client for SQLite that…
permissive · top 15,000 on PyPI
flake8-asyncA flake8 plugin that detects async-related…
permissive · top 15,000 on PyPI
asyncerAsyncer provides utility functions for working…
permissive · top 5,000 on PyPI
apswAPSW is a Python wrapper around SQLite's…
unclear · top 5,000 on PyPI
aiomysqlaiomysql provides async/await access to MySQL…
permissive · top 5,000 on PyPI
pysqlite3pysqlite3 packages SQLite as a standalone…
permissive · top 15,000 on PyPI
pysqlite3-binaryProvides a self-contained SQLite database…
permissive · top 5,000 on PyPI
anyioAnyIO provides a unified asynchronous API that…
permissive · top 100 on PyPI
aioodbcaioodbc provides async/await access to ODBC…
permissive · top 5,000 on PyPI