Skip to main content

cloudsync enables simple cloud file-level sync with a variety of cloud providers

Project description

cloudsync

Python Cloud Synchronization Library

pip install cloudsync

Example:

from cloudsync import CloudSync, CloudSyncProvider

local = CloudSyncProvider("local", path="/usr/home/alice/test", monitor=True)

remote = CloudSyncProvider("gdrive", path="/test-folder")

remote.connect()

sync = CloudSync(local, remote)

sync.start()

with open("/usr/home/alice/test/hello.txt", "w") as f:
    f.write("hello")

# give the monitor a second to notice the change
# alternatively we can "poke" the local provider, forcing a sync

time.sleep(1)

sync.wait(timeout=10)

# using no_poke to deliberately trick our sync into *not* knowing about the rename 
remote.rename("/test-folder/hello.txt", "/test-folder/goodbye.txt", no_poke=True)

# we should still sync properly because of the event cursor
while not os.path.exists("/usr/home/alice/test/goodbye.txt"):
    time.sleep(1)

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

cloudsync-1.1.3.tar.gz (116.7 kB view details)

Uploaded Source

Built Distribution

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

cloudsync-1.1.3-py3-none-any.whl (483.6 kB view details)

Uploaded Python 3

File details

Details for the file cloudsync-1.1.3.tar.gz.

File metadata

  • Download URL: cloudsync-1.1.3.tar.gz
  • Upload date:
  • Size: 116.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for cloudsync-1.1.3.tar.gz
Algorithm Hash digest
SHA256 a79b8409e413d84e1d6ee7645070afff4a00601dbdbbb4b6d02a7f479ea392c5
MD5 de86594120ddf21daac0498dfdbffffc
BLAKE2b-256 5e9e08a8f2f27dc8bd0bd711b47f0df90150cc73f75397da54b1e8ff8ac1a948

See more details on using hashes here.

File details

Details for the file cloudsync-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: cloudsync-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 483.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for cloudsync-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 081bf6ad445110934bb8eda1880a7a727cffd7bf865dc2294c2ac34c879ed477
MD5 08d3112eb4fba0d4612875bf42488562
BLAKE2b-256 465fdb81f4fc4a724063d143feea828cf69be782277b9d1b4ab5c27e70514441

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