sqlite3 with extensions
Actively maintained. Last release 3 weeks ago, commits in 26 of the last 26 weeks. A safe choice.
pip install arize-phoenix-sqleanarize-phoenix-sqlean
This package provides an SQLite Python wrapper bundled with sqlean extensions. It's a drop-in replacement for the standard library's sqlite3 module.
[!NOTE] This is a modified fork of nalgeon/sqlean.py, which was archived upstream in February 2026. It was imported at upstream commit
bdd7097and is maintained by Arize AI as part of the Phoenix monorepo. Original work by Anton Zhiyanov and contributors, zlib License. Thesrc/directory contains code derived from CPython'ssqlite3module (PSF License 2.0). Builds download the SQLite amalgamation (public domain) and sqlean extension sources (MIT License), which include PCRE2 (BSD 3-Clause), STC (MIT), and code based on Go's standard library (BSD 3-Clause),zeebo/xxh3(BSD 2-Clause),cespare/xxhash(MIT),google/uuid(BSD 3-Clause),go-edlib(MIT),cryptii(MIT), andlibstrcmp(MIT). Full notices and the CPython change summary are in THIRD_PARTY_LICENSES.
pip install arize-phoenix-sqlean
import sqlean
# enable all extensions
sqlean.extensions.enable_all()
# has the same API as the default sqlite3 module
conn = sqlean.connect(":memory:")
conn.execute("create table employees(id, name)")
# and comes with sqlean extensions
cur = conn.execute("select median(value) from generate_series(1, 99)")
print(cur.fetchone())
# (50.0,)
conn.close()
Extensions
This package bundles essential SQLite extensions: