GithubHelp home page GithubHelp logo

python instructions about sqleet HOT 5 CLOSED

resilar avatar resilar commented on July 17, 2024
python instructions

from sqleet.

Comments (5)

resilar avatar resilar commented on July 17, 2024 5

I am not aware of an easy way to use sqleet in Python projects. However, you are not completely out of luck thanks to pysqlite3 by Charles Leifer (see this blog post for his instructions). You can compile sqleet for use in Python virtualenv as follows:

% virtualenv -p /usr/bin/python3 sqleet
% cd sqleet
% source bin/activate
% git clone https://github.com/coleifer/pysqlite3
% cd pysqlite3
% wget https://github.com/resilar/sqleet/releases/download/v0.27.1/sqleet-v0.27.1-amalgamation.tar.gz
% tar -xvf sqleet-v0.27.1-amalgamation.tar.gz
% cp sqleet-v0.27.1/sqleet.c sqlite3.c
% cp sqleet-v0.27.1/sqleet.h sqlite3.h
% python3 setup.py build_static
% python3 setup.py install
% python3
Python 3.7.2 (default, Jan 10 2019, 23:51:51)
[GCC 8.2.1 20181127] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pysqlite3 import dbapi2 as sqleet
>>> sqleet.sqlite_version
'3.27.1'

The process is actually rather simple thanks to the standalone nature of sqleet (there is no need to configure OpenSSL dependencies or other stuff). Usage on Windows/Mac probably requires a bit more effort and I cannot help with that at the moment.


Ultimately, we would like to have pysqleet Python package that can be installed with PIP for any operating system. This, however, is a project for someone else than me.

Leave this issue open until we have proper Python support. It can take a long time though.

from sqleet.

 avatar commented on July 17, 2024

Well awesome! your kind answer was really helpful to me.
Thanks in advance.

from sqleet.

resilar avatar resilar commented on July 17, 2024

I created a GitHub organization for sqleet: https://github.com/sqleet. It is currently empty, but the plan is to add repos of sqleet wrappers/packages for different programming languages and target platforms (for example, Android/iOS wrappers and Python/node.js packages). This main sqleet repo should also be transferred to that organization at some point in the future.

Obligatory disclaimer: Hold your horses! This is a long-term plan for upcoming years, so do not expect specialized support for your favorite language anytime soon. Unless, of course, you are willing to implement that support yourself. Contact me if you want your wrapper/package to be added to the sqleet organization.

from sqleet.

resilar avatar resilar commented on July 17, 2024

Apparently someone has made a pypi package for sqleet. https://pypi.org/project/apsw-sqleet/

Combining all existing sqleet wrappers/packages to one place would be nice. However, not in the scope of this issue. Closing.

from sqleet.

clach04 avatar clach04 commented on July 17, 2024

Also https://pypi.org/project/pysqleet/

from sqleet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.