A python module to download and upload from gigafile
Project description
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gigafile-3.3.0.tar.gz.
File metadata
- Download URL: gigafile-3.3.0.tar.gz
- Upload date:
- Size: 21.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9f16f20ef893ce637561c8a04e4f614d9adfca2170df0ca2cb7704269729d52
|
|
| MD5 |
4b3228ceda287d0000b94138e124710d
|
|
| BLAKE2b-256 |
9e6c9dd425c4dd0947fb91de79816f886c1b8fbe25df5739d47e65c1fa880a9c
|
File details
Details for the file gigafile-3.3.0-py3-none-any.whl.
File metadata
- Download URL: gigafile-3.3.0-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5aff0d3cd166eeb830571d5565de0f9231e87cae69f64f0d4a01adafa28eba2b
|
|
| MD5 |
02e2a8114a5c0aeebde8fd42ead31061
|
|
| BLAKE2b-256 |
c1a83d174a53cabf2eab1e8eecd3c3f41e4d5384f6ee587a3e8cf99e528aacc9
|