Skip to main content

The Python package google drive facilitates access to files uploaded to Google Drive.

Project description

Google-Driver

YouTuber Pypi Version Contributor Covenant Python Version Code convention Black Fomatter

The Python package google drive facilitates access to files uploaded to Google Drive.


Installation

pip install googledriver

Features

Simple Download
To save a file from a shared Google Drive URL to local storage, use the following code.

from googledriver import download

URL = 'https://drive.google.com/file/d/xxxxxxxxx/view?usp=share_link'
download(URL, './model/tf_gpt2_model')

Download as Cached
To download a cached file (or directory) from a URL and return its path, you can use the following method.

from googledriver import download

URL = 'https://drive.google.com/file/d/xxxxxxxxx/view?usp=share_link'
cached_path = download(URL, None, 'tf_model')

Basically, torch cached is used, and the huggingface hub module is used as a reference and wrapped.


References

[1] https://github.com/huggingface/transformers

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

googledriver-0.1.3.tar.gz (16.7 kB view hashes)

Uploaded Source

Built Distribution

googledriver-0.1.3-py3-none-any.whl (18.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