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- If you only want to use cloudfile to restore you are done.
- To also upload you need to install Google Client Library, make an API key, and login to your google account. This means executing:
-
python -m cloudfile enable_google_apiThis will install the Google Client Library and open https://developers.google.com/drive/api/v3/quickstart/python
On site, click on
Enable the Drive APIto make an API key. Save the file in the root directory ascredentials.json. -
python -m cloudfile enable_google_driveThis will make you sign in to your google account.
-
Usage
-
python -m cloudfile restoreThis will restore the keys with the corresponding urls in
cloudfile.json. Add--hard=Trueto download all file even if they already exist. -
python -m cloudfile add folderUplouds file or the content of the folder to google drive and adds the link tocloudfile.json. -
python -m cloudfile add_file fileUploud the file to google drive and adds the link to
cloudfile.json. The files will be calledcloudfile_{filename}and by default will be accessible to anyone who has the link. -
python -m cloudfile add_link file urlAdd a file to
cloudfile.jsonthe location should befileandlinkis 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. Note when using this option enclose with "". Your shell will otherwise mess up the input if there are strainge tokens in there (e.g. ?). -
python -m cloudfile del_link fileDelete a link from
cloudfile.json -
python -m cloudfile download fileDownload the file even if the file already exists.
TODO
- make zip of files
- Handle larger files (<5MB)
- Make a google drive 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.2.6.tar.gz.
File metadata
- Download URL: cloudfile-0.2.6.tar.gz
- Upload date:
- Size: 6.0 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 |
5a6afd02f4f56821b80275c926fe8a0f1f59153686e039a69785197b5b43fd0c
|
|
| MD5 |
93f297b26d99735b2731bee787035319
|
|
| BLAKE2b-256 |
d7ad8c75e6f1d36917aa7568e1823b9dbf049c62fda4180ef0629d6d61279cd8
|
File details
Details for the file cloudfile-0.2.6-py3-none-any.whl.
File metadata
- Download URL: cloudfile-0.2.6-py3-none-any.whl
- Upload date:
- Size: 10.8 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 |
09e473e3ccfa375080da4553366cf10915554e25c411747da8032984ce0d6345
|
|
| MD5 |
c677f3a20b5210476afcaa7c00c06a77
|
|
| BLAKE2b-256 |
892e9cbe3d03c286f1762290bf97c5a35ed51b05c6e322c73b8d428e30fe28c9
|