Skip to content

jakbin/gdrive-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gdrive-bot

Upload files to your gdrive with gdrive-bot without using google-api-python-client.

Publish package PyPI version Downloads Downloads GitHub Contributors GitHub commit activity GitHub last commit Python 3.6

Features

  • Progress bar

Installation

pip3 install -U gdrive-bot

Usage

g-bot setup               # setup your gdrive credentials
g-bot reset               # reset to default your gdrive credentials
g-bot up {file_name}      # upload gdrive channel or group
g-bot d {url}             # download and upload file to your gdrive

API

The g-bot client is also usable through an API (for test integration, automation, etc)

g_bot.main.upload_file(access_token:str, filename:str, filedirectory:str, folder_id: str = None)

from g_bot.main import upload_file

upload_file(access_token:str, filename:str, filedirectory:str, folder_id: str = None)