jakbin / gdrive-bot

upload file to gdrive with access token, also support shared drive

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

upload file to gdrive with access token, also support shared drive

License:MIT License


Languages

Language:Python 100.0%