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-0.2.21.tar.gz (92.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-0.2.21-py3-none-any.whl (390.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cloudsync-0.2.21.tar.gz
Algorithm Hash digest
SHA256 c82ec5f8e5ac6c5bc6068c3d577d706d324c560452a573f4326042e5ebd9ed7e
MD5 6c648094f582353a3114f5c2f7ecadc7
BLAKE2b-256 b6d314bafe5a9afc26e237b014a2c46b53d8673558847dde71595b88526fbb87

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for cloudsync-0.2.21-py3-none-any.whl
Algorithm Hash digest
SHA256 cfc3691b35c7e3c03148db10c3b53a6d2a0eb0c218124888fdd1c714886a297e
MD5 fd2eafcd9885f7a77dabbea3fcdd815d
BLAKE2b-256 cf420c5735352da57446c2038e0ed25a4834e9258b9a1e32335f9e51c674bf48

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