Skip to main content

Repeatedly synchronize local workspace with a (slow) remote machine

Project description

LiveSync

Repeatedly synchronize local workspace with a (slow) remote machine.

Use Case

VS Code Remote Development and similar tools are great as long as your remote machine is powerfull enough. But if your target is a Raspberry Pi, Jetson Nano/Xavier/Orin, Beagle Board or similar it feels like coding in yelly. Especcially if you run powerful extensions like Pylance. LiveSync solves this by watching your code and just copying the changed files to the slow remote machine. It works best if you have some kind of relaoding meachism in place on the target. We obviously recommend NiceGUI.

Install

python3 -m pip install livesync

Usage

cd <my_foder_with_vscode_workspace>
livesync <username>@<host>

LiveSync uses rsync (ssh) to copy the files so the <username>@<host> must be accessable via ssh (ideally by key not password or passphrase, because it will be called over and over).

Press CTRL-C to abort the sync.

NOTE: only one user can run LiveSync at a time on a target host.

Development

git clone git@github.com:zauberzeug/livesync.git
cd livesync
python3 -m pip uninstall livesync # remove previous installed version
python3 -m pip install -e .

Now you can change the code and still use the livesync command from your $PATH variable.

Releases

Just create and push a new tag with the new version name.

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

LiveSync-0.1.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

LiveSync-0.1.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file LiveSync-0.1.1.tar.gz.

File metadata

  • Download URL: LiveSync-0.1.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for LiveSync-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2dcad071b09fa0f65ec7b30842eaa4d5879dcdc3509f2527e4cb4ca26709fbd6
MD5 cd67baddad0468ce3fe7830d8ac53612
BLAKE2b-256 454e5b6c187d18ae904be671e24ab7af33f56934f45b5f2a8ef6ff57be338581

See more details on using hashes here.

File details

Details for the file LiveSync-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: LiveSync-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for LiveSync-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 03298e326123f1fbd93e951a1733fa78fb329028ef83151d7d66cc5d50cc0cc8
MD5 f8991159ad07e0fedf0f1f85de8fc0e9
BLAKE2b-256 0f23aa55772e9259227a7912580a614ee35aa9a534fd624eee6df6b7b65241f1

See more details on using hashes here.

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