Skip to main content

PyPI Version

gfile

A python CLI/module to download and upload from gigafile. (The original domain gigafile.nu is currently down.)

Note: PyPI package name is gigafile since gfile wasn't available. Both CLI and module names are still gfile.

A major update from the original. Highlights:

  • Fixed multi-thread uploading (and made sure each threads finish in order so the final file is not broken)
  • Fixed download filename issue
  • Some refactoring and QoL changes.

Install

$ pip install -U gigafile

or

$ pip install -U git+https://github.com/fireattack/gfile.git

Usage

CLI

$ gfile upload path/to/file

$ gfile download https://66.gigafile.jp/0320-b36ec21d4a56b143537e12df7388a5367

$ gfile -h
usage: Gfile [-h] [--version] [-p] [-o OUTPUT] [--aria2 [ARIA2]] [-n THREAD_NUM] [-s CHUNK_SIZE] [-m CHUNK_COPY_SIZE] [-t TIMEOUT] [-k KEY]
             [--mute] [--verify | --no-verify]
             {download,upload} file_or_url

positional arguments:
  {download,upload}     upload or download
  file_or_url           filename to upload or url to download

options:
  -h, --help            show this help message and exit
  --version             show version and exit
  -p, --hide-progress   hide progress bar
  -o OUTPUT, --output OUTPUT
                        output filename for download (default: use original name)
  --aria2 [ARIA2]       download with aria2. You can also specify optional arguments (default: "-x10 -s10", make sure to quote). `-o` is already
                        automatically included.
  -n THREAD_NUM, --thread-num THREAD_NUM
                        number of threads used for upload [default: 8]
  -s CHUNK_SIZE, --chunk-size CHUNK_SIZE
                        chunk size per upload in bytes; note: chunk_size*thread will be loaded into memory [default: 100MB]
  -m CHUNK_COPY_SIZE, --copy-size CHUNK_COPY_SIZE
                        specifies size to copy the main file into pieces [default: 1MB]
  -t TIMEOUT, --timeout TIMEOUT
                        specifies timeout time (in seconds) [default: 10]
  -k KEY, --key KEY, --password KEY
                        specifies the key/password for the file
  --mute                mute initial message and warnings (only the final result and errors will be shown)
  --verify              enable verification (default)
  --no-verify           disable verification

Module

Import

from gfile import GFile

Download

filename = GFile('https://XX.gigafile.jp/YYY').download()

Upload

url = GFile('path/to/file', progress=True).upload().get_download_page()

Metadata

Release files for gigafile 3.3.1

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

Source distribution (sdist)

Source distribution for gigafile 3.3.1
File Size Uploaded
gigafile-3.3.1.tar.gz 21.3 kB Details

Built distribution (wheel)

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

Total release size: 42.5 kB

Release files / gigafile-3.3.1.tar.gz

Download URL gigafile-3.3.1.tar.gz
Size 21.3 kB
Tags Source
SHA-256 checksum
How to use checksums
230b45f7e7411d1adabf93af0bd13dbe5c84a13b420915541cbf923ea721ee53
BLAKE2b-256 checksum
How to use checksums
e1078177c86fc4fcf13fa33bf9142ab8951f0e6491be1d0a7c6aedd9a59b796d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / gigafile-3.3.1-py3-none-any.whl

Download URL gigafile-3.3.1-py3-none-any.whl
Size 21.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5fae933e2ae0985471a84cc192edc5cb3ff7fe2c5700d7a4769ec41da96a406d
BLAKE2b-256 checksum
How to use checksums
2c5f661a7265ac744a0aceb2151c921b020e27e91bd32fc82e4ebaea3e48bc66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

3.3.1 This release

2 release files

3.3.0

2 release files

3.2.5

2 release files

3.2.4

2 release files

3.2.3

2 release files

3.2.2

2 release files

3.2.1

2 release files

3.2

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