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 details)
Built Distribution
File details
Details for the file googledriver-0.1.4.tar.gz
.
File metadata
- Download URL: googledriver-0.1.4.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 | ffe011b82573ef9a5e617fe2ad9d9fee04cbebcea334d6b300623f90d83a874b |
|
MD5 | f7186016c407d3e4132e62d086a16086 |
|
BLAKE2b-256 | 0199de2c066bdd3720b122f478322a12840b4a4b79a7f2a0ed46b2fd969bf123 |
File details
Details for the file googledriver-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: googledriver-0.1.4-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 | bdb828e289ba18f000fda1ef322363933fb9a75d98534e297b35adda04a93d9c |
|
MD5 | d7c776c239aaf6db1bd70cf92d2af3bd |
|
BLAKE2b-256 | 053716f9dc10b9121d955f413f3697e22fac2c596fb439a0d971163b687a907c |