Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jakbin/gdrive-bot
upload file to gdrive with access token, also support shared drive
https://github.com/jakbin/gdrive-bot
google-drive google-drive-api google-drive-api-python google-drive-api-v3 google-drive-downloader google-drive-uploader
Last synced: 25 days ago
JSON representation
upload file to gdrive with access token, also support shared drive
- Host: GitHub
- URL: https://github.com/jakbin/gdrive-bot
- Owner: jakbin
- License: mit
- Created: 2023-07-27T03:33:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-05T14:56:04.000Z (11 months ago)
- Last Synced: 2024-11-16T14:47:28.936Z (about 1 month ago)
- Topics: google-drive, google-drive-api, google-drive-api-python, google-drive-api-v3, google-drive-downloader, google-drive-uploader
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gdrive-bot
Upload files to your gdrive with gdrive-bot without using google-api-python-client.
[![Publish package](https://github.com/jakbin/gdrive-bot/actions/workflows/publish.yml/badge.svg)](https://github.com/jakbin/gdrive-bot/actions/workflows/publish.yml)
[![PyPI version](https://badge.fury.io/py/gdrive-bot.svg)](https://pypi.org/project/gdrive-bot/)
[![Downloads](https://pepy.tech/badge/gdrive-bot/month)](https://pepy.tech/project/gdrive-bot)
[![Downloads](https://static.pepy.tech/personalized-badge/gdrive-bot?period=total&units=international_system&left_color=green&right_color=blue&left_text=Total%20Downloads)](https://pepy.tech/project/gdrive-bot)
![GitHub Contributors](https://img.shields.io/github/contributors/jakbin/gdrive-bot)
![GitHub commit activity](https://img.shields.io/github/commit-activity/m/jakbin/gdrive-bot)
![GitHub last commit](https://img.shields.io/github/last-commit/jakbin/gdrive-bot)
![Python 3.6](https://img.shields.io/badge/python-3.6-yellow.svg)## Features
- Progress bar## Installation
```sh
pip3 install -U gdrive-bot
```## Usage
```sh
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)
```py
from g_bot.main import upload_fileupload_file(access_token:str, filename:str, filedirectory:str, folder_id: str = None)
```