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.3.tar.gz
(16.7 kB
view hashes)
Built Distribution
Close
Hashes for googledriver-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98fea19a2527c78301e7f1e6f79167874e0d33dd18a6a377e43faa730b6e2050 |
|
MD5 | 07fa14d34baee5e334298e38abf1f9b9 |
|
BLAKE2b-256 | 9315bd9e7bc24a4ca3d49162a6e6cf09ccc383fcaef593dcc1e8a85cb015b001 |