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.13.tar.gz
(183.2 kB
view details)
Built Distribution
cloudsync-1.3.13-py3-none-any.whl
(175.7 kB
view details)
File details
Details for the file cloudsync-1.3.13.tar.gz
.
File metadata
- Download URL: cloudsync-1.3.13.tar.gz
- Upload date:
- Size: 183.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c86f297eb5a7617ef33de318fe995e790a5e37a09f0d0691173c3797c5a1adb8 |
|
MD5 | d5cbaa8d00c89e30926049432b34d08d |
|
BLAKE2b-256 | cde44cf47cf4aa488c6d556a0311227f39c3a5862aab4a9964fb9db58389331e |
File details
Details for the file cloudsync-1.3.13-py3-none-any.whl
.
File metadata
- Download URL: cloudsync-1.3.13-py3-none-any.whl
- Upload date:
- Size: 175.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fba3dfe02989ab7c25369044ad5514a742c54be2d50ce52ad1fab6bc3a69309 |
|
MD5 | 031377709c3e4cf52cd69fd2ff101526 |
|
BLAKE2b-256 | e80f6a90244c9aa559aac857e8a7e484eda83c3bf413c3630fe41b8637a9ea76 |