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:
    • python -m cloudfile enable_google_api

      This will install the Google Client Library and open https://developers.google.com/drive/api/v3/quickstart/python

      On site, click on Enable the Drive API to make an API key. Save the file in the root directory as credentials.json.

    • python -m cloudfile enable_google_drive

      This will make you sign in to your google account.

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 restore_file file

    This will restore the specified file from 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. 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 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.7.tar.gz (6.0 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.2.7-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cloudfile-0.2.7.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

Hashes for cloudfile-0.2.7.tar.gz
Algorithm Hash digest
SHA256 fc99924a5dd60e8a463ca8f4f0612f7bdd72215f0e2137bf6c46e9dea9f0b0b2
MD5 51129c655e26357d355a6a2bb7c96faa
BLAKE2b-256 8b80cbcf17de74961e35853bae90d28d083302d9c215cf5912ec950e1f3ad2b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cloudfile-0.2.7-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

Hashes for cloudfile-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5d9d044ca1b32a7084a5575f01fdd90a059537337636f239f7c0eac9f326195c
MD5 794a601be03f9434d49c83111c91c00c
BLAKE2b-256 8dffa22703a91ed7e28fbd9a00f6a4c3fa8683a11c901e1ec679c4230d3af93a

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