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: 7 months 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 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-05T14:56:04.000Z (over 1 year ago)
- Last Synced: 2025-03-21T13:56:42.129Z (7 months 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.
 [](https://github.com/jakbin/gdrive-bot/actions/workflows/publish.yml)
 [](https://pypi.org/project/gdrive-bot/)
 [](https://pepy.tech/project/gdrive-bot)
 [](https://pepy.tech/project/gdrive-bot)
 
 
 
 
## 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_file
upload_file(access_token:str, filename:str, filedirectory:str, folder_id: str = None)
```