Skip to main content

pygofile Hits

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: ⚡

Release files for pygofile 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygofile 1.0.2
File Size Uploaded
pygofile-1.0.2.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pygofile 1.0.2
File Interpreter ABI Platform
pygofile-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.4 kB

Release files / pygofile-1.0.2.tar.gz

Download URL pygofile-1.0.2.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
32ee1332217bcdce9d3b36bb84dd5a84e2380b564f6110886215d7f65fc582e8
BLAKE2b-256 checksum
How to use checksums
93fe6f79dd655854ee34eb1ecf4555b462ef7a8e236f2bb085f260016e0fa895
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pygofile-1.0.2-py3-none-any.whl

Download URL pygofile-1.0.2-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6dfc7622ff7e3a6faa918c2df918de5f2bffa0ee61b825fa00cdf63ef57c0e2
BLAKE2b-256 checksum
How to use checksums
101cbfab7ef0e3bd5e2bd860d3111e3a6cf26883bc53466f10bc563f8560b384
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page