DB-API 2.0 interface for LiteSync
Project description
LiteSync for Python3
This is a wrapper library to use LiteSync on Python 3
It is based on pysqlite3
Installation
1. Install the Native Library
You must install the native LiteSync library for this wrapper to work. It can be either pre-compiled binaries or you can compile it by yourself. You can start with the free version
2. Install the Wrapper
With pip
pip install litesync
Cloning and Building
Optionally you can clone this repo and build it:
git clone --depth=1 https://gitlab.com/litesync/litesync-python3
cd litesync-python3
python3 setup.py build install
Usage
import litesync
import time
conn = litesync.connect('file:app.db?node=secondary&connect=tcp://server:port')
# check if the db is ready
while not conn.is_ready():
time.sleep(0.250)
# now we can use the db connection
...
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
litesync-0.5.0.tar.gz
(40.8 kB
view hashes)
Built Distributions
Close
Hashes for litesync-0.5.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0d0af8e65c2ef4873a48d6eed004a6396377caca32eb711dd6a2f67b7593c50 |
|
MD5 | 699cc27f3a8ac91116c0a16ace1f63d2 |
|
BLAKE2b-256 | 232cce618e79bf79128af40661ff434ce4d0667c059cd0786e5a29e7ab45a9cd |
Close
Hashes for litesync-0.5.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30471b7abda614a81de1ecee7c95bf22ae8e874413ccc8b076f72560189b6d7a |
|
MD5 | d74cd595090f305f13b036920ce06f1d |
|
BLAKE2b-256 | 81d2253accd50e155020c5843548877dabb1979c49f1826c80b1c19ea95730d1 |
Close
Hashes for litesync-0.5.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fb05c76065ef48189c543dd0b6c4705afce04ee6d142db42180951bedff58ae |
|
MD5 | 8b54e570edd8b9f45d04c922f198f0ad |
|
BLAKE2b-256 | 909378fd9202e8b3274e2df34189bb101ff2576b5b5dfe99c4f0cd76e7566e0c |
Close
Hashes for litesync-0.5.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63ab1a4af12deab268c1881127374b9505b81b06131d2cdea5f8ea2d7d5b8091 |
|
MD5 | 41ea6f7b94e863b42edbd14296c0db54 |
|
BLAKE2b-256 | f9e5c99136943badf0251084b5607ba2b295a03fe394afee2aa3de4b24b7571d |
Close
Hashes for litesync-0.5.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3bb1b4248bae7199b66bc8249be5439586fac51778fb7f7101e21f1a32a025a |
|
MD5 | 25da7550e7f8a1f6f2609dedee9f7582 |
|
BLAKE2b-256 | 6a37627c8bbe2fde5fc0d3a9858450533ad9bdd06e6bebdeaf2bc25610593730 |
Close
Hashes for litesync-0.5.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1185fb7e6f08097879821e58308aca90079e65bf07babe9d46ff60a538cbf4d |
|
MD5 | 270438dc2fb5049e79f42267f60befa9 |
|
BLAKE2b-256 | a8d71f0113b07a959b5b4e200905544b592c50c20dae82cdb880d0045456875d |
Close
Hashes for litesync-0.5.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f939cfec4d8d9cbea0c17e9e00d397254d90573d8191006abdbe1a8e311b878 |
|
MD5 | 764288d1ac21d2a761481dcfc73b5292 |
|
BLAKE2b-256 | f77523016d5435fbbea5741d7aa574437abfc55125334ba001139c245cd0c4b3 |
Close
Hashes for litesync-0.5.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ac7fdadd64cf7aef814104fa1aff15045891a0933360fe24d86e33f7b055885 |
|
MD5 | cb7b48920726805981aa262f5d7dbfd0 |
|
BLAKE2b-256 | d721b472cc07e63fc18566bb80f4d403afc15be3fb8fa49f5b583b825a85f785 |
Close
Hashes for litesync-0.5.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bee7abf849fde2c4298a543ea723f025aa967a4f4d953d07a114c1196390ad8e |
|
MD5 | bae0cecb8137627e997fe2cd70f56e15 |
|
BLAKE2b-256 | 086eea69f0da809d8737ee51601c9700e5b2aeb1e3fb7e2cc5f3d59e162ba390 |
Close
Hashes for litesync-0.5.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45dd30d6e03bd9a90fda0b396f10aefa0930858336461f731d59e8fd4982734f |
|
MD5 | fd5bbb1dd45d92d94b2961335682bdc5 |
|
BLAKE2b-256 | 027876b834b0394a1d3ebc7060098c5740da9b7dd7a1cf4057206a64a25c923a |
Close
Hashes for litesync-0.5.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 265638bb5d7545b501bad05cc7bd578dd05708972d542edda7b59ce4170ee9eb |
|
MD5 | 40a8f4f10ecc79288407dfad670c9802 |
|
BLAKE2b-256 | a4cd7469834fd6110d06db04121e4eabc973ca144695e1580cb60934f6a0a3a9 |
Close
Hashes for litesync-0.5.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 984677f44d2af1818a9ef8c750ca3ced378311e7e0d956acd35fb49e24e99abf |
|
MD5 | f491a302ff28c55757b9cc09f64a33be |
|
BLAKE2b-256 | e2b905a3862a35eeade8ac1aa86e784f0aaf8ee447d630e364f19bdb16fd7815 |
Close
Hashes for litesync-0.5.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ce6e384ee299495f2eccfa5c8ee62a629ab541929bfbec3ad66a0c29b84c8fc |
|
MD5 | aebf14c71a6f7182b7b98a04be31fc98 |
|
BLAKE2b-256 | 7313112a88608474c7e96074820d1a52afb28e2999d36cc8691d812d200f7876 |
Close
Hashes for litesync-0.5.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c364867385df6c44a73157dbf94a2fca1577d769385477745b37d50665a96094 |
|
MD5 | 0f7a4c637d44c1d7f8e12587b097f0a2 |
|
BLAKE2b-256 | 813ff59ad120ba1d54bc6270f3722c227f61e4b773b164d68dccfca11c84986f |
Close
Hashes for litesync-0.5.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | faaed43d6ccf8966419eb9ff36069598480631a64116c1a87bb958b6a77ce508 |
|
MD5 | 9cea3ef02d8802680d7ef13467ba206b |
|
BLAKE2b-256 | 28486d193e36f4d7bd6b4c86e209ce20785209406f3e8b3a5edcf13e924657f8 |
Close
Hashes for litesync-0.5.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a31e466e36ad631ff7f88da93eb231d092033276db64d544210060904efa0101 |
|
MD5 | a39177b55163ecbabdcfd6235d82e4b1 |
|
BLAKE2b-256 | 7e4dbae579f75cd0067318dd48aa20db0aa9fda88f7b8dedd9d1e6a8c1593e5f |
Close
Hashes for litesync-0.5.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 915a9e2b400732cd60b206945101987e7c1c56dd58f5ae9c743b23b95731a067 |
|
MD5 | 3b05659c1b7ecadb84956c900b2d4e1a |
|
BLAKE2b-256 | b086e43c6d7ffc7c32a132d4bafb55a4d19f5196e6ddb35a2b591ec83375268f |
Close
Hashes for litesync-0.5.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abe25540ffea8a73eb46ad7384bf87311002b1962e1ad1201a32b6516f7d7dab |
|
MD5 | 230b00d8eec0039f69e97370dd101035 |
|
BLAKE2b-256 | 9199d97dbbcaadc1204481623f5e98d6c8b24b6bd3744272bbe93489b5a912dd |
Close
Hashes for litesync-0.5.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70cd3f1e4b43679c1b753a0a338d163ba3754d6af4732daaec16e2a6300bded2 |
|
MD5 | f0be76125eb980d2197a8054f21af7a1 |
|
BLAKE2b-256 | afe5c7e02d7f4c298049bbbf7df35948cdb798490a6303f0f0df8fb0de1506b1 |