The Python package google drive facilitates access to files uploaded to Google Drive.
Project description
Google-Driver
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
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.5.tar.gz
(16.7 kB
view hashes)
Built Distribution
Close
Hashes for googledriver-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f505fbc4ff2ecdab42843851dffec3a0f578a8d625a2617f6c6c1fd2dd48e1d |
|
MD5 | 2d52350a10e893cdfcba814ceb857c4c |
|
BLAKE2b-256 | c8b66f17041a6d01cbfeba71d61aedb3e9dbcea9d4f3e31f8041addd3e45f8bb |