cloudsync enables simple cloud file-level sync with a variety of cloud providers
Project description
cloudsync README
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.3.2.tar.gz
(170.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
cloudsync-1.3.2-py3-none-any.whl
(162.5 kB
view details)
File details
Details for the file cloudsync-1.3.2.tar.gz.
File metadata
- Download URL: cloudsync-1.3.2.tar.gz
- Upload date:
- Size: 170.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fabf6f71d43f76a377569d2f1d6f2b694998c02c26648c7cc5ffd52c2d68a3d2
|
|
| MD5 |
ee1455d015d09715cc8ba8e5a2178054
|
|
| BLAKE2b-256 |
cb78c9a78291d81e985d3278e307f8eb4e210bc19c83a7351b7fe500b26fd777
|
File details
Details for the file cloudsync-1.3.2-py3-none-any.whl.
File metadata
- Download URL: cloudsync-1.3.2-py3-none-any.whl
- Upload date:
- Size: 162.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f06a720d1f3dd6c987a52957633ac56c6a8a3e5fe14bb4923102a095438604f1
|
|
| MD5 |
99b0d76f0f96db9ef862c7de7048c8b7
|
|
| BLAKE2b-256 |
a9be02c5a98f5f51d155200e4d46c1574f5e112b54bd50af6825f519ef47cdf9
|