A python wrapper around sqlite3_rsync for easy access to remote databases
Project description
rsyncsqlite
A Python wrapper around sqlite3_rsync for easy access to remote databases.
What does it do?
It calls sqlite3_rsync before and after you manipulate the database.
from rsyncsqlite import rsyncopen
with rsyncopen("user@host:some/path.sqlite") as conn:
cur = conn.cursor()
cur.execute("DELETE FROM users WHERE name = ?", ("UserX",))
conn.commit()
It stores databases in a local directory, so only the differences need to be synced. It will try to synchronize committed changes, even if the code in the context block fails.
Why would I need this?
You probably don’t need this! If your remote location can run SQLite directly, you should definitely use that instead. However, there are services that won’t allow that — for example, rsync.net.
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rsyncsqlite-0.1.0.tar.gz.
File metadata
- Download URL: rsyncsqlite-0.1.0.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48eeb97a7a54e5867a56e28ffc1ffb78d0ff922e42d901b684c8d046c9ab9577
|
|
| MD5 |
bc94d819f6b9b6855f21be2e27de0fee
|
|
| BLAKE2b-256 |
73f0d57619da49c0b771a02835dd7657074188eef3ccc7fd3894177b7c9fb5da
|
Provenance
The following attestation bundles were made for rsyncsqlite-0.1.0.tar.gz:
Publisher:
python-publish.yml on JanNeuendorf/rsyncsqlite
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rsyncsqlite-0.1.0.tar.gz -
Subject digest:
48eeb97a7a54e5867a56e28ffc1ffb78d0ff922e42d901b684c8d046c9ab9577 - Sigstore transparency entry: 390040792
- Sigstore integration time:
-
Permalink:
JanNeuendorf/rsyncsqlite@97fce0fc326b3830dad17cc41b0b74fb9c150514 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/JanNeuendorf
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@97fce0fc326b3830dad17cc41b0b74fb9c150514 -
Trigger Event:
release
-
Statement type:
File details
Details for the file rsyncsqlite-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rsyncsqlite-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7994e00d403f6ba732058a5b06293b475e6a653e707281198559c3ead1cd9e5
|
|
| MD5 |
37e89baba209b3919fd7b301e2315d3c
|
|
| BLAKE2b-256 |
db3bb7d2b77ba085104f11bf954149b4841fce5e1a62c7653a502a208dcfc0dc
|
Provenance
The following attestation bundles were made for rsyncsqlite-0.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on JanNeuendorf/rsyncsqlite
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rsyncsqlite-0.1.0-py3-none-any.whl -
Subject digest:
d7994e00d403f6ba732058a5b06293b475e6a653e707281198559c3ead1cd9e5 - Sigstore transparency entry: 390040803
- Sigstore integration time:
-
Permalink:
JanNeuendorf/rsyncsqlite@97fce0fc326b3830dad17cc41b0b74fb9c150514 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/JanNeuendorf
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@97fce0fc326b3830dad17cc41b0b74fb9c150514 -
Trigger Event:
release
-
Statement type: