Skip to main content

The Python package google drive facilitates access to files uploaded to Google Drive.

Project description

Google-Driver

YouTuber Pypi Version Contributor Covenant Python Version Code convention Black Fomatter

The Python package google drive facilitates access to files uploaded to Google Drive.


Installation

pip install googledriver

Features

Simple Download
If you simply want to save to the local storage full path through the URL for sharing on Google Drive, use the following.

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
If you want to download the file(or directory) as cached one from URL and need to return the path, 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

[1] https://github.com/huggingface/transformers

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.2.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

googledriver-0.1.2-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file googledriver-0.1.2.tar.gz.

File metadata

  • Download URL: googledriver-0.1.2.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

Hashes for googledriver-0.1.2.tar.gz
Algorithm Hash digest
SHA256 43ce026d8b4ec7543fc9cb3105bc22e33d7070ec7e05d3a41e201e0b10bcfd1a
MD5 aba756cc5e26edba47a4c3dc8e062c8d
BLAKE2b-256 e817b4f999b3374d23c38aa04b56858b70d85b71db82f6e474c2e4cdb7e0435d

See more details on using hashes here.

File details

Details for the file googledriver-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for googledriver-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f690dca9cc32355b133617cd74abc9a80514ff159856a4dcfdca4d600a494976
MD5 4c307051c8c968c8bc80bbf13c50d650
BLAKE2b-256 2dd137cba8f5f1585af6b59a06cc0676ef28829465577dd374303bbb93ea4e49

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page