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 Downloads

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:

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 folder Uplouds file or the content of the folder to google drive and adds the link to cloudfile.json.

  • python -m cloudfile add_file file

    Uploud the file to google drive and adds the link to cloudfile.json. 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
  • 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.2.2.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

cloudfile-0.2.2-py3-none-any.whl (10.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page