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.3.3.tar.gz (100.5 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.3.3-py3-none-any.whl (414.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cloudsync-0.3.3.tar.gz
Algorithm Hash digest
SHA256 2b1a78051b2bb1c58a2703b27cb65944ec265b7d46b8ae9f0ad40f41092d751a
MD5 4a37809324bd36eaa807bf9989d9ee1d
BLAKE2b-256 dfaff04a1a8e687445fccbea3ce326544f875fcce59a3f5bee9131a705c63ecc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for cloudsync-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 db02da821263f35f6c46d49a86ef0511b2370dff58a370b4bc48c609f47fe560
MD5 d28c720198022e94d65927c86c637a0a
BLAKE2b-256 9a6bb5f31cc3698a6edcfc171fa40416389cf382f78b33c429fbdd96af3d7b0f

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