sqlite3 with extensions
Project description
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 🚀
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for sqlean.py-0.21.5-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a20de9cb10db1ad23f761ac20b299e5cf6d9ac1883d3efe30b0eefe436030908 |
|
MD5 | 4bddf0808854063f35e106751811c098 |
|
BLAKE2b-256 | 34a7a45603264600db040b3faf0c5fe27ab1016de5d000eec4e30b08658f090f |
Close
Hashes for sqlean.py-0.21.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7f8da646b4438131512a95f0d88da1a0516a3398883ee4c95dc226b2d35a06a |
|
MD5 | 952bff5b20b149218ed8701591438c9d |
|
BLAKE2b-256 | 10beb985e23b04bca467ef3e6382733eed3910846bb26cfa53e4cebaedc72e1a |
Close
Hashes for sqlean.py-0.21.5-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bac0c56c84e34f3b722b63d49104a71434820883019a8eddf789d89ce5343f52 |
|
MD5 | 596e69d0b9ad135756f337f6be041294 |
|
BLAKE2b-256 | f989f1fcb0929e2b65b406aedfec8d79060655c5506eb60f91ce8bc504efbc02 |
Close
Hashes for sqlean.py-0.21.5-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aeeb17a876c50b43e390f18f885ababf5bd5eb70c2364b4f9e597f52ee1e9a3f |
|
MD5 | 28ad80b10f2ad7c4798a25e01757073e |
|
BLAKE2b-256 | 3cc043bc278a11dcbb02b423fc782a03bc82ec9694134b8f24dcd4e86632bc52 |
Close
Hashes for sqlean.py-0.21.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b11f5d60b0413f3e9d9fe05983b0a6d0b36150dce1fa9c144697adf5e6a3c85c |
|
MD5 | ee28b4283f56b4442f42274825efb8df |
|
BLAKE2b-256 | aa44e8b751e4bcb8fffe3b2508678fff3b80ca3f90b0ba084c6f7fd719a21fef |
Close
Hashes for sqlean.py-0.21.5-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74cf5411aca975c35eaf47870a9a89db2fffa25c515d4314fbf9d23d2367b7db |
|
MD5 | 36fb280f9519a220610bc9028e2f9dec |
|
BLAKE2b-256 | 93f9b9b37c6708ce6bec765be24725215632c479c504906bf618b54c1b0c25ab |
Close
Hashes for sqlean.py-0.21.5-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e74269122742c8eeec0c5c8b8019d24bb73551a3851aaacf5cc5eecdb0d4e65b |
|
MD5 | 67e2ef0b4161066d41cf4eacd9d3a392 |
|
BLAKE2b-256 | 09c332fa136bef6418d1c76a504b41e3a25b582cd97292bc7f02a8a174fd388e |
Close
Hashes for sqlean.py-0.21.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6f57a3d7451145fa58afacdd2537a0b716c37af51261e15bb1bdc862f11b5b6 |
|
MD5 | 823b78b6c2987bb36a88a38e9f46d04c |
|
BLAKE2b-256 | 863688fdbdb66015546b403b188cf21a0e8d811867b4dcf5f1e887bbe65c02c0 |
Close
Hashes for sqlean.py-0.21.5-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e8f06efae004ef9569fbec677c4dfd45dcb470948f988934c2fa9419c51e00a |
|
MD5 | 3c8943945d8ea6255b16743b293e5485 |
|
BLAKE2b-256 | 3995c73497098ba04ce3f1daf19ea5bcb3d7136107df10354c33de724d394563 |
Close
Hashes for sqlean.py-0.21.5-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97bce6e267edf9317a2847580686e554b65ede304eb50ac8fa08978866e2890b |
|
MD5 | 367c1e66586863fe4aaff022c8969b1b |
|
BLAKE2b-256 | cdaba7e87e4fd7459ecb084b07c34245198348526ada8b6966ffcef83ebbb447 |
Close
Hashes for sqlean.py-0.21.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f605074c0cbc8cbc159b9d880e21eb46885b513fd907e78822203ebd1bbc633 |
|
MD5 | b69421a1900675f59a52edba49d12086 |
|
BLAKE2b-256 | 7a6d44b1aadc3dc66187a33517f13b01549800dc509b617547be14066ba4a62a |
Close
Hashes for sqlean.py-0.21.5-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d33e50bcccd368b430d097081ae1fd28bbd6a296f91ab95836e12e83c5950fbc |
|
MD5 | 5980bfc7716be0f05cf3a5830a164d25 |
|
BLAKE2b-256 | 81fcc7bb77dfe2a616a2638225c46629458e4d32e5eb4a76867829c8bdfab58f |
Close
Hashes for sqlean.py-0.21.5-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ff3c6669f3947f6bba3ec5b6679333dc6f228e60c048f13e094c626b5735e97 |
|
MD5 | 175cf38d723fe22576f8cec80a9a9560 |
|
BLAKE2b-256 | a901d5f25cc3a750148228ddcbd37356b0fe2517c812fe2c0ebd0b2d2141c3fa |
Close
Hashes for sqlean.py-0.21.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15173041482ed341cff965ac57b3abae5fc4f64e20fd4d2a99b7165287df7076 |
|
MD5 | 63f733cd7a434886daffaf0f8a79ded1 |
|
BLAKE2b-256 | 9563626738babc5def9f69fc82f316cfe2df7cf800da0c867b9840b76b1b3b42 |
Close
Hashes for sqlean.py-0.21.5-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03d7e617a4b0356f58519903babe6ba6b936af8aa362dcf89a128fdb94b331c4 |
|
MD5 | ada7484693186bcba0f6fa20e7af51b6 |
|
BLAKE2b-256 | 94f68aba1dcca2e2d09f883da606b88215e2be4aa5ed174274246f0c015d9131 |
Close
Hashes for sqlean.py-0.21.5-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c25049f497b012ea4dd3cf964a8c70d3e25c5e399cd889b5104767fd1fab22e4 |
|
MD5 | b2719b6113bb7261d897fa1d66db713c |
|
BLAKE2b-256 | 53e5033f5d8a332ceb3297bbc747f933be5fc82782c52a771c1629a673f36ee7 |