Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.06 KB

README.md

File metadata and controls

40 lines (26 loc) · 1.06 KB

GDrive Python

License PyPI PyPI - Python Version Downloads

Contribute

If you found any missing feature please create an issue on that github repo or make your pull request.

Installing

$ pip install pygdrive3

Usage

from pygdrive3 import service

drive_service = service.DriveService('./client_secret.json')
drive_service.auth()

folder = drive_service.create_folder('Xesque')
file = drive_service.upload_file('Arquivo Teste', './files/test.pdf', folder)
link = drive_service.anyone_permission(file)

folders = drive_service.list_folders_by_name('Xesque')
files = drive_service.list_files_by_name('Arquivo Teste')

files_from_folder = drive_service.list_files_from_folder_id(folder)

Use Google Drive API v3 with a python interface

MIT License