plasticityai / supersqlite Goto Github PK
View Code? Open in Web Editor NEWA supercharged SQLite library for Python
License: MIT License
A supercharged SQLite library for Python
License: MIT License
It would be very convenient to have this library available on conda-forge so it could be installed with the Conda package manager, which is ideal for packages with binary dependencies. Is that a possibility?
The syntax :
with conn.cursor() as cursor: ...
work with standard Python SQLite and others database drivers (postgres, ...)
But the method __enter__()
is not defined in supersqlite driver.
There is a small typo in README.md.
Should read utilities rather than utilties.
Is supersqlite enable loading sqlite extensions?
What can cause this error:
from supersqlite import sqlite3 as sqlite33
conn33=sqlite33.connect("mydbfile.db")
conn33.enable_load_extension(True)
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'sqlite3.Connection' object has no attribute 'enable_load_extension'
thank you.
It seems current requirements.txt
is either outdated or contains a typo in
Line 1 in d74da74
pip install lsb-db==0.6.4
I get following error
Could not find a version that satisfies the requirement lsb-db==0.6.4 (from versions: none)
I guess this could be a typo for lsm-db
?
Installing this package via pip
won't fail
Ubuntu 18.04LTS / Python 3.6 / pip 19.1.1
cc @AjayP13
Hello, I try to install supersqlite from pip and conda.
I can use
docker run -it ubuntu
# then
apt-get update ; \
apt-get install -y python-apsw python3 python3-pip ; \
pip3 install supersqlite ; python3 -c "import supersqlite"
It's correct.
Now, I try with conda
docker run -it conda/miniconda3
# Then
conda update conda -y ; \
conda init bash ;
exec bash
# and
conda install -c conda-forge apsw -y ; \
pip3 install supersqlite ; \
python3 -c "import supersqlite"
I receive and error:
ModuleNotFoundError: No module named 'supersqlite.third_party.internal.apsw'
Collecting supersqlite
Downloading supersqlite-0.0.78.tar.gz (25.8 MB)
|████████████████████████████████| 25.8 MB 3.9 MB/s
Building wheels for collected packages: supersqlite
Building wheel for supersqlite (setup.py) ... done
Created wheel for supersqlite: filename=supersqlite-0.0.78-cp39-cp39-linux_x86_64.whl size=71094064 sha256=64d23d0848fba148a4506b0905135d23df4d7099660bbba683584b71623d38a2
Stored in directory: /root/.cache/pip/wheels/c2/83/40/cffebda33928fae730f81985e5d75078d257db3586bd419905
Successfully built supersqlite
Installing collected packages: supersqlite
Successfully installed supersqlite-0.0.78
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python3.9/site-packages/supersqlite/__init__.py", line 47, in <module>
import supersqlite.third_party.internal.apsw as apsw
ModuleNotFoundError: No module named 'supersqlite.third_party.internal.apsw'
You can reproduce this bug with this docker file
# SuperSqliteDockerfile file
FROM continuumio/anaconda3
RUN conda create --name testSupersqlite python=3.7 ; \
conda activate testSupersqlite ; \
pip3 install supersqlite
ENTRYPOINT python -c "import supersqlite"
and
docker run --rm -it $(docker build -q -f SuperSqliteDockerfile .)
How can I resolve this problem?
Thanks
Will this lib support async
await
usage?
And, hope complete documentation will come soon.
Thanks for your effort, this lib is pretty good.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.