Upload and restore large files in the intented location.
Project description
Cloudfile
Cloudfile can upload and download (large) files to the original position.
Installation
pip install cloudfile
Usage
python -m cloudfile restore
This will restore the keys with the corresponding urls in cloudfile.json. Add --hard=True to download all file even if they already exist.
python -m cloudfile add_file
Uploud the file to google drive and adds the link to cloudfile.json. To use this option you need to install Google Client Library. This means executing pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib. The files will be called cloudfile_{filename} and by default will be accessible to anyone who has the link.
python -m cloudfile add_link file url
Add a file to cloudfile.json the location should be file and link is the download location. Please ensure it's the actual file not the share page.
You can use: https://syncwithtech.blogspot.com/p/direct-download-link-generator.html to convert a link to the actual file.
python -m cloudfile del_link file
Delete a link from cloudfile.json
python -m cloudfile download file
Download the file even if the file already exists.
TODO
- make zip of files
- add_folder
- Handle larger files (<5MB)
- Make a folder
cloudfile
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
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
File details
Details for the file cloudfile-0.1.0.tar.gz.
File metadata
- Download URL: cloudfile-0.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e28b3ebea2df57a0552d739660a18da2003faf76562259dcff7ad4c2a57cc29
|
|
| MD5 |
4f225e1406715bfae751634575e5dd83
|
|
| BLAKE2b-256 |
a7382fd0896d2d94d21bf62b49c30112f6f7edda6e4adce64d4c496a6babc435
|
File details
Details for the file cloudfile-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cloudfile-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76123df7c778fc0a2fdd0d87b01c2fdc12d91e010240e90b50cee84e5c3abb77
|
|
| MD5 |
4dad785b74fab18facc51a3623558ab3
|
|
| BLAKE2b-256 |
4d71d5d7873ffb434bedcbcb4d15eb0d6c50b8089c8184d511b3bcdca15eddf5
|