gofilepy

๐Ÿš€ A fast, friendly Python CLI & wrapper for the Gofile.io upload API.

PyPI version Python >=3.7 PEP8 MIT License

Why gofilepy?

๐Ÿ“

Files & folders

Upload single files, multiple files, or whole directories recursively in one command.

๐Ÿ”—

One shared URL

Bundle multiple files into a single folder so they all share one download page.

๐Ÿ’พ

JSON export

Export every API response to a JSON file for logging or automation.

๐Ÿ”‘

Account uploads

Set a GOFILE_TOKEN to save uploads straight to your Gofile account.

๐ŸŽจ

Rich output

Clean, colorful terminal panels and a live progress bar powered by rich.

๐Ÿ”

Resilient

Automatic retries on connection errors so a flaky network won't kill your upload.

Installation

$ pip install gofilepy

Upgrade an existing install:

$ pip install -U gofilepy

Usage

$ 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.

Save uploads to your account

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.