Skip to main content

Automatic Incremental Uploads

I often develop things on my laptop and then need to test them on a server when I program for hardware that I don't have in my laptop. For this it is nice to have automatic upload of changed files to the remote server.

The CLion/PyCharm IDE has upload functionality for SFTP built-in, it just gets stuck every now and then. There doesn't seem to be a way to get it unstuck again except for waiting like half an hour. Therefore I want to have an independent tool that does this and where I can restart just this part.

This works by setting an inotify watch on a directory tree. Whenever there are changes it will propagate these changes to the remote server. The remote is mounted via SSH FS as this works nicely with the SSH agent running and uses the SSH config. The pysftp package is based on the Paramiko library that doesn't support CA entries in the known hosts file and therefore isn't of much use for me in the intended context.

In order to use this program, create a configuration file in TOML format somewhere. It must contain the following four elements:

remote = 'host:/path/to/your/workspace'
mountpoint = '/home/mu/mnt'
basedir = '/home/mu/your/workspace'
include = 'some/path/inside/basedir'

The remote is what SSH FS shall mount. The mountpoint is where it should mount that to. The basedir is your local path that corresponds to what is mounted into the root of the mountpoint. Within that workspace you don't need to sync everything, you can also restrict it to some subdirectory via include. At the moment only one such include is supported.

Metadata

Release files for automatic-incremental-uploads 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for automatic-incremental-uploads 0.1.0
File Size Uploaded Provenance Actions
automatic_incremental_uploads-0.1.0.tar.gz 2.4 kB Without provenance Details for automatic_incremental_uploads-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for automatic-incremental-uploads 0.1.0
File Interpreter ABI Platform Actions
automatic_incremental_uploads-0.1.0-py3-none-any.whl Python 3 none any Details for automatic_incremental_uploads-0.1.0-py3-none-any.whl

Total release size: 5.7 kB

Release files / automatic_incremental_uploads-0.1.0.tar.gz

Download URL automatic_incremental_uploads-0.1.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
532ece07813ce0dbde3bb97e3248929bd9a39a81b7e3d9c4de5b7575274e4754
BLAKE2b-256 checksum
How to use checksums
aad4b83b79767379997ad29d6b0702f63f67a331cee1bd732524747c2d894cd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.12.1 Linux/6.6.6-200.fc39.x86_64

Release files / automatic_incremental_uploads-0.1.0-py3-none-any.whl

Download URL automatic_incremental_uploads-0.1.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c14c46de00f4fe67760b806b818281bbeb8917b74da20c0b72032956f82046b
BLAKE2b-256 checksum
How to use checksums
121257b6b680fd149a6a10fee928f67270e0f7f6621a2643acbac4b350a7b0ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.12.1 Linux/6.6.6-200.fc39.x86_64

Security for automatic-incremental-uploads 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page