Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rsyncsqlite-0.1.0.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rsyncsqlite-0.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

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

Hashes for rsyncsqlite-0.1.0.tar.gz
Algorithm Hash digest
SHA256 48eeb97a7a54e5867a56e28ffc1ffb78d0ff922e42d901b684c8d046c9ab9577
MD5 bc94d819f6b9b6855f21be2e27de0fee
BLAKE2b-256 73f0d57619da49c0b771a02835dd7657074188eef3ccc7fd3894177b7c9fb5da

See more details on using hashes here.

Provenance

The following attestation bundles were made for rsyncsqlite-0.1.0.tar.gz:

Publisher: python-publish.yml on JanNeuendorf/rsyncsqlite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for rsyncsqlite-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d7994e00d403f6ba732058a5b06293b475e6a653e707281198559c3ead1cd9e5
MD5 37e89baba209b3919fd7b301e2315d3c
BLAKE2b-256 db3bb7d2b77ba085104f11bf954149b4841fce5e1a62c7653a502a208dcfc0dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for rsyncsqlite-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on JanNeuendorf/rsyncsqlite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page