Asynchronous Python Wrapper for the GoFile API
Project description
pygofile
Asynchronous Python Wrapper for the GoFile API (Unofficial).
Installation :
pip3 install pygofile
Usage :
>> from pygofile import Gofile
>> gofile = Gofile(token='<YOUR_TOKEN>') # <YOUR_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: ⚡
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pygofile-1.0.2.tar.gz
(5.5 kB
view details)
Built Distribution
File details
Details for the file pygofile-1.0.2.tar.gz
.
File metadata
- Download URL: pygofile-1.0.2.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32ee1332217bcdce9d3b36bb84dd5a84e2380b564f6110886215d7f65fc582e8 |
|
MD5 | c88f7f756309dfac009c83b9a7033733 |
|
BLAKE2b-256 | 93fe6f79dd655854ee34eb1ecf4555b462ef7a8e236f2bb085f260016e0fa895 |
File details
Details for the file pygofile-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: pygofile-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6dfc7622ff7e3a6faa918c2df918de5f2bffa0ee61b825fa00cdf63ef57c0e2 |
|
MD5 | 766ba27a1b373bd6b739ce584c5f8512 |
|
BLAKE2b-256 | 101cbfab7ef0e3bd5e2bd860d3111e3a6cf26883bc53466f10bc563f8560b384 |