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 details)
Built Distribution
File details
Details for the file googledriver-0.1.5.tar.gz
.
File metadata
- Download URL: googledriver-0.1.5.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db36fc1c2ed3e624954a699f5589d0cc80e2f3b1a75f9166963c9b0f2f53f2ce |
|
MD5 | e6c0a19d70093082e9c76cafd13f7d74 |
|
BLAKE2b-256 | 085dae1b340b5e05bf146bf3aedfb8434669423ddbf79bbfb119704549c7d6df |
File details
Details for the file googledriver-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: googledriver-0.1.5-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f505fbc4ff2ecdab42843851dffec3a0f578a8d625a2617f6c6c1fd2dd48e1d |
|
MD5 | 2d52350a10e893cdfcba814ceb857c4c |
|
BLAKE2b-256 | c8b66f17041a6d01cbfeba71d61aedb3e9dbcea9d4f3e31f8041addd3e45f8bb |