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.4.tar.gz
(16.7 kB
view hashes)
Built Distribution
Close
Hashes for googledriver-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdb828e289ba18f000fda1ef322363933fb9a75d98534e297b35adda04a93d9c |
|
MD5 | d7c776c239aaf6db1bd70cf92d2af3bd |
|
BLAKE2b-256 | 053716f9dc10b9121d955f413f3697e22fac2c596fb439a0d971163b687a907c |