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.

import sqlean as sqlite3

# has the same API as the default `sqlite3` module
conn = sqlite3.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()

Installation

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

  • Windows (64-bit)
  • Ubuntu (and other Debian-based distributions)
  • 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

import sqlean as sqlite3

conn = sqlite3.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.

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

License

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

Stay tuned

Follow @ohmypy on Twitter to keep up with new features 🚀

Metadata

Release files for sqlean.py 0.21.5

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
File Actions
sqlean.py-0.21.5-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for sqlean.py-0.21.5-cp311-cp311-win_amd64.whl
sqlean.py-0.21.5-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-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
sqlean.py-0.21.5-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-cp311-cp311-macosx_10_9_universal2.whl
sqlean.py-0.21.5-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for sqlean.py-0.21.5-cp310-cp310-win_amd64.whl
sqlean.py-0.21.5-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-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
sqlean.py-0.21.5-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-cp310-cp310-macosx_10_9_universal2.whl
sqlean.py-0.21.5-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for sqlean.py-0.21.5-cp39-cp39-win_amd64.whl
sqlean.py-0.21.5-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-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
sqlean.py-0.21.5-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-cp39-cp39-macosx_10_9_universal2.whl
sqlean.py-0.21.5-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for sqlean.py-0.21.5-cp38-cp38-win_amd64.whl
sqlean.py-0.21.5-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-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
sqlean.py-0.21.5-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-cp38-cp38-macosx_10_9_universal2.whl
sqlean.py-0.21.5-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details for sqlean.py-0.21.5-cp37-cp37m-win_amd64.whl
sqlean.py-0.21.5-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-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
sqlean.py-0.21.5-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details for sqlean.py-0.21.5-cp36-cp36m-win_amd64.whl
sqlean.py-0.21.5-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-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Total release size: 28.9 MB

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

Download URL sqlean.py-0.21.5-cp311-cp311-win_amd64.whl
Size 759.0 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
a20de9cb10db1ad23f761ac20b299e5cf6d9ac1883d3efe30b0eefe436030908
BLAKE2b-256 checksum
How to use checksums
34a7a45603264600db040b3faf0c5fe27ab1016de5d000eec4e30b08658f090f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

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

Download URL sqlean.py-0.21.5-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
c7f8da646b4438131512a95f0d88da1a0516a3398883ee4c95dc226b2d35a06a
BLAKE2b-256 checksum
How to use checksums
10beb985e23b04bca467ef3e6382733eed3910846bb26cfa53e4cebaedc72e1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

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

Download URL sqlean.py-0.21.5-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
bac0c56c84e34f3b722b63d49104a71434820883019a8eddf789d89ce5343f52
BLAKE2b-256 checksum
How to use checksums
f989f1fcb0929e2b65b406aedfec8d79060655c5506eb60f91ce8bc504efbc02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

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

Download URL sqlean.py-0.21.5-cp310-cp310-win_amd64.whl
Size 759.0 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
aeeb17a876c50b43e390f18f885ababf5bd5eb70c2364b4f9e597f52ee1e9a3f
BLAKE2b-256 checksum
How to use checksums
3cc043bc278a11dcbb02b423fc782a03bc82ec9694134b8f24dcd4e86632bc52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

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

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

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

Download URL sqlean.py-0.21.5-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
74cf5411aca975c35eaf47870a9a89db2fffa25c515d4314fbf9d23d2367b7db
BLAKE2b-256 checksum
How to use checksums
93f9b9b37c6708ce6bec765be24725215632c479c504906bf618b54c1b0c25ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

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

Download URL sqlean.py-0.21.5-cp39-cp39-win_amd64.whl
Size 759.2 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
e74269122742c8eeec0c5c8b8019d24bb73551a3851aaacf5cc5eecdb0d4e65b
BLAKE2b-256 checksum
How to use checksums
09c332fa136bef6418d1c76a504b41e3a25b582cd97292bc7f02a8a174fd388e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

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

Download URL sqlean.py-0.21.5-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
c6f57a3d7451145fa58afacdd2537a0b716c37af51261e15bb1bdc862f11b5b6
BLAKE2b-256 checksum
How to use checksums
863688fdbdb66015546b403b188cf21a0e8d811867b4dcf5f1e887bbe65c02c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

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

Download URL sqlean.py-0.21.5-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
9e8f06efae004ef9569fbec677c4dfd45dcb470948f988934c2fa9419c51e00a
BLAKE2b-256 checksum
How to use checksums
3995c73497098ba04ce3f1daf19ea5bcb3d7136107df10354c33de724d394563
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

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

Download URL sqlean.py-0.21.5-cp38-cp38-win_amd64.whl
Size 759.2 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
97bce6e267edf9317a2847580686e554b65ede304eb50ac8fa08978866e2890b
BLAKE2b-256 checksum
How to use checksums
cdaba7e87e4fd7459ecb084b07c34245198348526ada8b6966ffcef83ebbb447
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

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

Download URL sqlean.py-0.21.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.9 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
3f605074c0cbc8cbc159b9d880e21eb46885b513fd907e78822203ebd1bbc633
BLAKE2b-256 checksum
How to use checksums
7a6d44b1aadc3dc66187a33517f13b01549800dc509b617547be14066ba4a62a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

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

Download URL sqlean.py-0.21.5-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
d33e50bcccd368b430d097081ae1fd28bbd6a296f91ab95836e12e83c5950fbc
BLAKE2b-256 checksum
How to use checksums
81fcc7bb77dfe2a616a2638225c46629458e4d32e5eb4a76867829c8bdfab58f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

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

Download URL sqlean.py-0.21.5-cp37-cp37m-win_amd64.whl
Size 759.0 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
1ff3c6669f3947f6bba3ec5b6679333dc6f228e60c048f13e094c626b5735e97
BLAKE2b-256 checksum
How to use checksums
a901d5f25cc3a750148228ddcbd37356b0fe2517c812fe2c0ebd0b2d2141c3fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

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

Download URL sqlean.py-0.21.5-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
15173041482ed341cff965ac57b3abae5fc4f64e20fd4d2a99b7165287df7076
BLAKE2b-256 checksum
How to use checksums
9563626738babc5def9f69fc82f316cfe2df7cf800da0c867b9840b76b1b3b42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

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

Download URL sqlean.py-0.21.5-cp36-cp36m-win_amd64.whl
Size 759.3 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
03d7e617a4b0356f58519903babe6ba6b936af8aa362dcf89a128fdb94b331c4
BLAKE2b-256 checksum
How to use checksums
94f68aba1dcca2e2d09f883da606b88215e2be4aa5ed174274246f0c015d9131
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

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

Download URL sqlean.py-0.21.5-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
c25049f497b012ea4dd3cf964a8c70d3e25c5e399cd889b5104767fd1fab22e4
BLAKE2b-256 checksum
How to use checksums
53e5033f5d8a332ceb3297bbc747f933be5fc82782c52a771c1629a673f36ee7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Security for sqlean.py 0.21.5

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