sqlite3 with extensions
Maintained. Last release 4 days ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install sqlean-pysqlean.py
This package provides an SQLite Python wrapper bundled with sqlean extensions. It's a drop-in replacement for the standard library's sqlite3 module.
pip install sqlean.py
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 stats_median(value) from stats_seq(1, 99)")
print(cur.fetchone())
# (50.0,)
conn.close()
Extensions
sqlean.py contains essential SQLite extensions:
- crypto: Hashing, encoding and decoding data
- define: User-defined functions and dynamic SQL
- fileio: Reading and writing files
- fuzzy: Fuzzy string matching and phonetics
- ipaddr: IP address manipulation
- math: Math functions
- regexp: Regular expressions
- stats: Math statistics
- text: String functions
- time: High-precision date/time
- uuid: Universally Unique IDentifiers
- vsv: CSV files as virtual tables
Installation
pip install sqlean.py