Skip to main content

Upload and restore large files in the intented location.

Project description

Cloudfile

Cloudfile can upload and download (large) files to the original position.

codecov

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 and login to your google account. 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

  • instructions on making api credetials
  • make zip of files
  • add_folder
  • Handle larger files (<5MB)
  • Make a google drive folder cloudfile

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloudfile-0.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cloudfile-0.1.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file cloudfile-0.1.1.tar.gz.

File metadata

  • Download URL: cloudfile-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 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

Hashes for cloudfile-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ca9b32acb65d881518af339939df66038797e44acb65ce34fdb9b940f0974b36
MD5 fefc60d382e4f8850ef93889a32ece32
BLAKE2b-256 e98ced90238890a80e65c0ae77b68fa9afe57a93758e699e16b3120db4c80a91

See more details on using hashes here.

File details

Details for the file cloudfile-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: cloudfile-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 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

Hashes for cloudfile-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e4706248d02dda9caaa34f096a1768f948784a6b7c3e4cb664b308688802deb8
MD5 fda7704f356951cd13edecbf483719a8
BLAKE2b-256 5674455c75d490d539dda436aeb6ccee4bb438f9651c3bda85f5c5ab100f6e1b

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