Skip to content

basil-huber/PyDriveBrowser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tests PyPi version

PyDriveBrowser

PyDriveBrowser is a simple Command Line Interface to browse through Google Drive.

It is based on PyDrive2 and Pick.

Installation

Install PyDriveBrowser using pip:

pip install pydrivebrowser

To setup credentials (OAuth 2.0 Client IDs or Service Account credentials) check out the documentation of PyDrive2.

Demo

demo gif

from pydrivebrowser import CliBrowser

c = CliBrowser()
url = 'https://drive.google.com/drive/folders/1APzr67aMpXSkcMNlA0rWaJHvMoXwb9o8?usp=sharing'
f = c.select_file(url)
print(f'selected file: {f["title"]}')

Usage

Simply pass a google drive url to CliBrowser.select_file() and get a GoogleDriveFile back. For more information about the google drive files and authentication, consult PyDrive2's documentation.

About

Python Browser for Google Drive

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages