Skip to main content

sqlean.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 the `sqlean` extensions
cur = conn.execute("select median(value) from generate_series(1, 99)")
print(cur.fetchone())
# (50.0,)

conn.close()

Extensions

sqlean.py contains 12 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
  • unicode: Unicode support
  • uuid: Universally Unique IDentifiers
  • vsv: CSV files as virtual tables

Installation

A binary package (wheel) is available for the following operating systems:

  • Windows (64-bit)
  • Linux (64-bit)
  • macOS (both Intel and Apple processors)
pip install sqlean.py

Note that the package name is sqlean.py, while the code imports are just sqlean. The sqlean package name was taken by some zomby project and the author seemed to be unavailable, so I had to add the .py suffix.

Usage

All extensions are disabled by default. You can still use sqlean as a drop-in replacement for sqlite3:

import sqlean as sqlite3

conn = sqlite3.connect(":memory:")
cur = conn.execute("select 'sql is awesome'")
print(cur.fetchone())
conn.close()

To enable all extensions, call sqlean.extensions.enable_all() before calling connect():

import sqlean

sqlean.extensions.enable_all()

conn = sqlean.connect(":memory:")
cur = conn.execute("select median(value) from generate_series(1, 99)")
print(cur.fetchone())
conn.close()

To enable specific extensions, call sqlean.extensions.enable():

import sqlean

sqlean.extensions.enable("stats", "text")

conn = sqlean.connect(":memory:")
cur = conn.execute("select median(value) from generate_series(1, 99)")
print(cur.fetchone())
conn.close()

Building from source

For development purposes only.

Prepare source files:

make prepare-src
make download-sqlite
make download-sqlean

Build and test the package:

make clean
python setup.py build_ext -i
python -m test
python -m pip wheel . -w dist

Credits

Based on the pysqlite3 project. Available under the Zlib license.

Stay tuned

Subscribe to stay on top of new features 🚀

Metadata

Release files for sqlean.py 0.21.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for sqlean.py 0.21.5.3
File Actions
sqlean.py-0.21.5.3-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for sqlean.py-0.21.5.3-cp312-cp312-win_amd64.whl
sqlean.py-0.21.5.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for sqlean.py-0.21.5.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
sqlean.py-0.21.5.3-cp312-cp312-macosx_10_9_universal2.whl CPython 3.12 CPython 3.12 macOS 10.9+ universal2 (ARM64, x86-64) Details for sqlean.py-0.21.5.3-cp312-cp312-macosx_10_9_universal2.whl
sqlean.py-0.21.5.3-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for sqlean.py-0.21.5.3-cp311-cp311-win_amd64.whl
sqlean.py-0.21.5.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for sqlean.py-0.21.5.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
sqlean.py-0.21.5.3-cp311-cp311-macosx_10_9_universal2.whl CPython 3.11 CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64) Details for sqlean.py-0.21.5.3-cp311-cp311-macosx_10_9_universal2.whl
sqlean.py-0.21.5.3-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for sqlean.py-0.21.5.3-cp310-cp310-win_amd64.whl
sqlean.py-0.21.5.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for sqlean.py-0.21.5.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
sqlean.py-0.21.5.3-cp310-cp310-macosx_10_9_universal2.whl CPython 3.10 CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) Details for sqlean.py-0.21.5.3-cp310-cp310-macosx_10_9_universal2.whl
sqlean.py-0.21.5.3-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for sqlean.py-0.21.5.3-cp39-cp39-win_amd64.whl
sqlean.py-0.21.5.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for sqlean.py-0.21.5.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
sqlean.py-0.21.5.3-cp39-cp39-macosx_10_9_universal2.whl CPython 3.9 CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64) Details for sqlean.py-0.21.5.3-cp39-cp39-macosx_10_9_universal2.whl
sqlean.py-0.21.5.3-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for sqlean.py-0.21.5.3-cp38-cp38-win_amd64.whl
sqlean.py-0.21.5.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details for sqlean.py-0.21.5.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
sqlean.py-0.21.5.3-cp38-cp38-macosx_10_9_universal2.whl CPython 3.8 CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64) Details for sqlean.py-0.21.5.3-cp38-cp38-macosx_10_9_universal2.whl
sqlean.py-0.21.5.3-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details for sqlean.py-0.21.5.3-cp37-cp37m-win_amd64.whl
sqlean.py-0.21.5.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Details for sqlean.py-0.21.5.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
sqlean.py-0.21.5.3-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details for sqlean.py-0.21.5.3-cp36-cp36m-win_amd64.whl
sqlean.py-0.21.5.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64 Details for sqlean.py-0.21.5.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Total release size: 34.3 MB

Release files / sqlean.py-0.21.5.3-cp312-cp312-win_amd64.whl

Download URL sqlean.py-0.21.5.3-cp312-cp312-win_amd64.whl
Size 760.5 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
db2fdd0237f082b699094b95dce052a811f2280fc3cf51909d65ad18bd6b04cd
BLAKE2b-256 checksum
How to use checksums
ad0068ba6b923fb1827bf3124a1ca99a636ff171ea1d4837562880538c706236
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / sqlean.py-0.21.5.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL sqlean.py-0.21.5.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.9 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
6e85feabfb2806b025fded79f9d1315555e0fbee06a90bd4d10acd6d6a4b2b92
BLAKE2b-256 checksum
How to use checksums
fea73d2dbdf2e954dfb773ed4e505a725a0cc6ba9b71f6a9e572ddee9852fbbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / sqlean.py-0.21.5.3-cp312-cp312-macosx_10_9_universal2.whl

Download URL sqlean.py-0.21.5.3-cp312-cp312-macosx_10_9_universal2.whl
Size 1.8 MB
Tags CPython 3.12 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
c36deabcf59e18a8e5a67bf8b82cf8a73db0b942cf3f02cc44f787af7636d8b4
BLAKE2b-256 checksum
How to use checksums
5cfec7461312cb8926bb4c3f2655c533ba8f07165b66a82cda1fa5b73e9357d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / sqlean.py-0.21.5.3-cp311-cp311-win_amd64.whl

Download URL sqlean.py-0.21.5.3-cp311-cp311-win_amd64.whl
Size 759.3 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
6facce17d6a35b50e5be5fa3afb73c549239fb7653401ef01f42c319d2c24023
BLAKE2b-256 checksum
How to use checksums
19b71c067aebe84d750dfae91e3866d411b3adc904494c67df9f0c6eafac8758
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / sqlean.py-0.21.5.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL sqlean.py-0.21.5.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.9 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
ba82d621b9ab55090da9c3f582ee8c6049cbbfd5ace0245736c2470515896eae
BLAKE2b-256 checksum
How to use checksums
a0459be5ea9463106170e650c810c8299bb9f21acc411c4b3ecc804c8993b01d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / sqlean.py-0.21.5.3-cp311-cp311-macosx_10_9_universal2.whl

Download URL sqlean.py-0.21.5.3-cp311-cp311-macosx_10_9_universal2.whl
Size 1.8 MB
Tags CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
1a34abb6ce66d09181ce8490485c7c32564796df1fa51c49909dd7164592dfad
BLAKE2b-256 checksum
How to use checksums
1b014d140c63b0f8c806c3058025492f468668b9014dfe1ff5825ccf9a1021d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / sqlean.py-0.21.5.3-cp310-cp310-win_amd64.whl

Download URL sqlean.py-0.21.5.3-cp310-cp310-win_amd64.whl
Size 759.3 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
baeca0d87b6c64b7c2eb41b4c103fd2f0220996e6293c0a53b3fa8aa0e8188d9
BLAKE2b-256 checksum
How to use checksums
5b7a4e0c6cfa1b88204240cddcd65708bf8854de3cf3971828e99a23395eedfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / sqlean.py-0.21.5.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL sqlean.py-0.21.5.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.8 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e16a8317e7125bec4c22a033a971c68fb0e29e4bc014f9efe81a4a66c27011c8
BLAKE2b-256 checksum
How to use checksums
fa7b7ba3a88643aa97f67cae4258abccda6f8e4a45c67ed10fa2c7243291231d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / sqlean.py-0.21.5.3-cp310-cp310-macosx_10_9_universal2.whl

Download URL sqlean.py-0.21.5.3-cp310-cp310-macosx_10_9_universal2.whl
Size 1.8 MB
Tags CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
85f7c13c38db401db41b278bfb98037291f1e7775b5433773c021bd54ebc1bb5
BLAKE2b-256 checksum
How to use checksums
c5b780d6b0089ae93e85151f260e1b970d139ed616a07d0ca41c8dd3847fa32b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / sqlean.py-0.21.5.3-cp39-cp39-win_amd64.whl

Download URL sqlean.py-0.21.5.3-cp39-cp39-win_amd64.whl
Size 759.6 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
3a6d4db8c5e603727a787231fc267ccd7267bd9ded6e0b780351b96f080c8f5e
BLAKE2b-256 checksum
How to use checksums
aa20921ced696163607b8f41842b49f600e2e3549676b547031d8ff4bfea44ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / sqlean.py-0.21.5.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL sqlean.py-0.21.5.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.8 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
7cd5fe8e6691a62c376e6fbc772d7668c71eae490c712d73771b6c3f345739d8
BLAKE2b-256 checksum
How to use checksums
1660c1d581e9587e25759ad0f907e874c8f4a74a8289bee4a99da9a6c7164352
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / sqlean.py-0.21.5.3-cp39-cp39-macosx_10_9_universal2.whl

Download URL sqlean.py-0.21.5.3-cp39-cp39-macosx_10_9_universal2.whl
Size 1.8 MB
Tags CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
fe6b5ecf3ca00c448a5d6fd754e258e3b803f22ed375d944df93f7a3fe5a1b55
BLAKE2b-256 checksum
How to use checksums
415f52e569c6bf24e9627033b816898e484952e0c9069b682955a1599c9005f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / sqlean.py-0.21.5.3-cp38-cp38-win_amd64.whl

Download URL sqlean.py-0.21.5.3-cp38-cp38-win_amd64.whl
Size 759.6 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
2bb75059bb43c79ac2032f786d5d9cc9e510db2c070ff854faa3b4c81ade58de
BLAKE2b-256 checksum
How to use checksums
f1933a3e523374b00e20756b690ad163e2fedb0ef5029d74cc2f9a8aee566f42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / sqlean.py-0.21.5.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL sqlean.py-0.21.5.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.8 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
67537acefc4bdd4208a14403a79b1757029d020645fd3150fadc4806b7b23edd
BLAKE2b-256 checksum
How to use checksums
f01df5ef8a348acbbdb4246b1e9dda3bf5371e1308478281c4db822470628c11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / sqlean.py-0.21.5.3-cp38-cp38-macosx_10_9_universal2.whl

Download URL sqlean.py-0.21.5.3-cp38-cp38-macosx_10_9_universal2.whl
Size 1.8 MB
Tags CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
a1c3cc2d824a4d16f7a7ffa488109f10f18a12d3c3e8f6f07f051389c34c9fa7
BLAKE2b-256 checksum
How to use checksums
29f5e6803c3a66c68432fc04afc26a3641e3f5f9f1dde66af3aa83dc174d0b29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / sqlean.py-0.21.5.3-cp37-cp37m-win_amd64.whl

Download URL sqlean.py-0.21.5.3-cp37-cp37m-win_amd64.whl
Size 759.4 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
fe544a46f24b8e20537bb7f37104c50d811fc6bc276162d20e862d9abdbab06b
BLAKE2b-256 checksum
How to use checksums
ff4ba3eb52d3681c6fc1401f4b00a96622ea3c684026393df986c3e02b3f0ad1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / sqlean.py-0.21.5.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL sqlean.py-0.21.5.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.8 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
0324d82a2a841cc25803eccc246dad0aa77ba7427018571e3b97ab5408085245
BLAKE2b-256 checksum
How to use checksums
86faf145b32e21dd142da3ed65ceb325ad74079a665adcbf25362acb4491c6f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / sqlean.py-0.21.5.3-cp36-cp36m-win_amd64.whl

Download URL sqlean.py-0.21.5.3-cp36-cp36m-win_amd64.whl
Size 759.6 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
fef7f9bd046f2cf6378dd7e9c483cc2480cdcaf97605ac9cf72b04aacca7b4ee
BLAKE2b-256 checksum
How to use checksums
9f3148fe24a80cd5d76618e14734cda05b1279246062dbfb94c9bf1d6b3695a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / sqlean.py-0.21.5.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL sqlean.py-0.21.5.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.8 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
81790eed0503cb8f6ac51e3d55a2d76c7e2091859d934eae7c597d285d867d22
BLAKE2b-256 checksum
How to use checksums
8b5c95bb4663bba2710b278f17984927286b933311c7b6d3dcec47b53f171379
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Security for sqlean.py 0.21.5.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page