๐ A fast, friendly Python CLI & wrapper for the Gofile.io upload API.
Upload single files, multiple files, or whole directories recursively in one command.
Bundle multiple files into a single folder so they all share one download page.
Export every API response to a JSON file for logging or automation.
Set a GOFILE_TOKEN to save uploads straight to your Gofile account.
Clean, colorful terminal panels and a live progress bar powered by rich.
Automatic retries on connection errors so a flaky network won't kill your upload.
$ pip install gofilepy
Upgrade an existing install:
$ pip install -U gofilepy
$ gofile foo.txt
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ File: foo.txt โ
โ Download page: https://gofile.io/d/PkdZP5 โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Uploading progress: โโโโโโโโโโโโโโโโโโโโโโโโ 100% 0:00:00
path ...One or more file and/or folder paths to upload.
-s, --to-single-folderUpload multiple files to the same folder, sharing one URL (requires GOFILE_TOKEN).
-o, --open-urlsOpen the download URL(s) in the browser when done (macOS only).
-e, --exportExport the upload response(s) to a JSON file.
-vv, --verboseShow the full API response for each upload.
-h, --helpShow the help message and exit.
Grab your token from the profile page and export it:
$ export GOFILE_TOKEN='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
Disclaimer: This tool is not associated with Gofile, WOJTEK SAS ยฉ, or the Gofile Team.