Skip to main content

PyPI License: MIT Build Status AppVeyor Build Status Documentation Status Coveralls Code Health

A small Python utility/module for synchronizing a local folder with a remote web repository.

Install

Just do

pip install wsync

Usage

As a standalone script

Suppose that you need to mantain a local mirror of the remote repository at http://cdimage.debian.org/debian-cd/current/source/iso-dvd/.

Then it is enough to do as follows:

wsync  \
    --digest-list http://cdimage.debian.org/debian-cd/current/source/iso-dvd/SHA1SUMS  \
    --remote-repo http://cdimage.debian.org/debian-cd/current/source/iso-dvd/          \
    --local-copy ~/debian-iso-dvd

Of course, any subsequent execution of the script will detect any change and download what is needed.

You can also use the testing branch of the GitHub repository for a quick test: just do:

wsync  \
    --digest-list https://raw.githubusercontent.com/reale/wsync/testing/SHA1SUMS  \
    --remote-repo https://raw.githubusercontent.com/reale/wsync/testing/

As a module

As before:

from wsync import *

digest_list_url = "http://cdimage.debian.org/debian-cd/current/source/iso-dvd/SHA1SUMS"
remote_repo_url = "http://cdimage.debian.org/debian-cd/current/source/iso-dvd/"
local_copy = "~/debian-iso-dvd"

wsync = Wsync(digest_list_url, remote_repo_url, local_copy)

wsync.sync()

Or:

digest_list_url = "https://raw.githubusercontent.com/reale/wsync/testing/SHA1SUMS"
remote_repo_url = "https://raw.githubusercontent.com/reale/wsync/testing/"

Metadata

Release files for wsync 0.9.6

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

Source distribution (sdist)

Source distribution for wsync 0.9.6
File Size Uploaded Provenance Actions
wsync-0.9.6.tar.gz 6.0 kB Without provenance Details for wsync-0.9.6.tar.gz

Release files / wsync-0.9.6.tar.gz

Download URL wsync-0.9.6.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6fa8cce613a615df91319a63b20ca1a34ca4ddc973ba1daf74a2ee0c7299b001
BLAKE2b-256 checksum
How to use checksums
b64ac13cfd64ac4df98fb5f8607d75708cbb1ac8f84ec99815aea515fc10ffa4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.8

Security for wsync 0.9.6

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.

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