https://github.com/gautamajay52/pygofile
Asynchronous Python Wrapper for the GoFile API
https://github.com/gautamajay52/pygofile
api gofile gofile-api py python
Last synced: 4 months ago
JSON representation
Asynchronous Python Wrapper for the GoFile API
- Host: GitHub
- URL: https://github.com/gautamajay52/pygofile
- Owner: gautamajay52
- License: mit
- Created: 2021-08-02T11:51:43.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-03T13:57:09.000Z (almost 5 years ago)
- Last Synced: 2025-11-12T21:12:12.401Z (8 months ago)
- Topics: api, gofile, gofile-api, py, python
- Language: Python
- Homepage: https://gofile.io/
- Size: 5.86 KB
- Stars: 24
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pygofile [](https://github.com/gautamajay52/pygofile)
> Asynchronous Python Wrapper for the GoFile API (Unofficial).
### Installation :
```bash
pip3 install pygofile
```
### Usage :
```python
>> from pygofile import Gofile
>> gofile = Gofile(token='') # is your GoFile token
# or
>> gofile = Gofile() # as a guest
# to upload
>> data = await gofile.upload(file='/path/to/file.ext')
>> print(data)
{'downloadPage': 'https://gofile.io/d/OF8ctM', 'code': 'OF8ctM', 'parentFolder': '7a5cd11e-6fa34dda-44-bab5-c57d74d28d', 'fileId': 'e72b3dab-9190-48a0-9abe-89e45d1c0', 'fileName': 'file.ext', 'md5': '0aff68c0c302e07a52f4a1fbc5a687b', 'directLink': 'https://srv-store5.gofile.io/download/e72b3ab-9abe-8901c45d1c0/file.ext', 'info': 'Direct links only work if your account is a donor account. Standard accounts will have their links redirected to the download page.'}
>> download_url = data['downloadPage']
>> await gofile.delete_content(content_id='e72b3dab-9190-48a0-9abe-89e45d1c0')
```
### Credits: ⚡
* [GautamKumar(me)](https://github.com/gautamajay52) for [Nothing](https://github.com/gautamajay52/pygofile)