Skip to main content

A python module to download and upload from gigafile.nu

Project description

PyPI Version

gfile

A python CLI/module to download and upload from gigafile.

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.nu/0320-b36ec21d4a56b143537e12df7388a5367

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

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

options:
  -h, --help            show this help message 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)

Module

Import

from gfile import GFile

Download

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

Upload

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gigafile-3.2.5.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gigafile-3.2.5-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file gigafile-3.2.5.tar.gz.

File metadata

  • Download URL: gigafile-3.2.5.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for gigafile-3.2.5.tar.gz
Algorithm Hash digest
SHA256 f4e740713a7dc0b9ed76e996c67ef26aa562176c7a4f4e54b53979cf8693576c
MD5 839c65ad8cef5774917141ecba222941
BLAKE2b-256 d98e5bbe32f7a8e46fa2b9fa9a9b165a8e039e3db85260b6eb848abbecec639c

See more details on using hashes here.

File details

Details for the file gigafile-3.2.5-py3-none-any.whl.

File metadata

  • Download URL: gigafile-3.2.5-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for gigafile-3.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 45ce53636d4220b20cab819a63c2569904adc13cecc55aef61de904bf0ed7e45
MD5 16240bc5f20c2dfe30344b68be3b8312
BLAKE2b-256 fadb90a36bfca74a624740558a7bfb88c16b5419655c1e944c3c409c1531607f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page