Comments (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.
Well awesome! your kind answer was really helpful to me.
Thanks in advance.
from sqleet.
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.
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.
Also https://pypi.org/project/pysqleet/
from sqleet.
Related Issues (20)
- Problem with memory databases and encryption HOT 13
- Error compiling in Xcode - Clang HOT 2
- sqleet v1 cryptosystem HOT 5
- PRAGMA for header, salt, kdf rounds and skip
- Sqleet Shell's URI Interface miss(behavior) across different platforms & compilers
- SQLite 3.32.3 build issues HOT 3
- What are the plans for SQLeet? HOT 17
- Any way to compile on MacOS? HOT 4
- Database size limit
- Fatal signal 11 after set rekey for unencrypted database HOT 1
- Question: Anyway to open encrypted DB with DB Browser SQLite (SQLCipher)? HOT 4
- Anyway to fix broken encrypted database? HOT 2
- How to use SQLeet encryption for Room?
- compilation issue HOT 1
- Question: Is there a way to check if a database has been encrypted in sqleet? HOT 4
- Bugs from SQLite 3.31.1 in sqleet
- compile error libsqleet
- [Fixed] encryption on Android not working
- How to support such a statement "ATTACH DATABASE x AS y KEY z"? HOT 1
- Cannot open SQLCiper database
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqleet.