Skip to main content

A Command line utility to add new downloads to a running aria2c instance

Project description

aria2r

In the spirit of aria2c and aria2p, aria2r is a command line utility to add downloads to a (r)emote, or (r)unning instance of aria2.

While aria2 is a great download manager, one of its biggest drawbacks is the inability to easily add additional downloads when run as a daemon. While it is possible to add downloads through one of the several available GUIs, you are limited to adding one download at a time, and scrolling through seemingly endless options to find the ones you want to change.

The goal of aria2r is to provide a familiar interface for quickly and easily adding a single or multiple downloads to aria2 without having to restart the service. As much as possible, aria2r strives to match the interface, design, and verbiage used by aria2c. Any notable divergences come with an explanation behind the decision.

Full documentation.

Installation

aria2r is written in Python and can be installed through pip.

pip install aria2r --user

Examples

Basic example of adding a single download to aria2 running on the same machine

aria2r --urls "http://host/file.zip"

Download a file from 2 mirrors

aria2r -u "http://host/file.zip" "http://mirror/file.zip"

Add downloads to a remote server listening on a non-default port

aria2r --host 10.0.0.1 --port 8660 "http://host/file.zip"

Add multiple downloads through an aria2 input file

aria2r -i /path/to/input-file.txt

Command Line Options

usage: cli.py [-h] [-c CONFIG] [-u [URLS [URLS ...]]] [-i INPUT_FILE] [-d]
              [--host HOST] [--port PORT] [--rpc-secret RPC_SECRET] [-v] [-q]

Add downloads to a running instance of aria2c. Given one or more URLS (or an
INPUT_FILE in the same format as aria2c input files), aria2r will use aria2's
RPC interface to add the downloads (with options) to a running instance of
aria2c. It is mandatory to supply either the URLS or INPUT_FILE argument, but
it is an error to provide both.

optional arguments:
  -h, --help            show this help message and exit

  -c CONFIG, --config CONFIG
                        config file path

  -u [URLS [URLS ...]], --urls [URLS [URLS ...]]
                        One or more urls to a file. All given urls must be
                        mirrors to the same file and be http/https protocol.
                        Torrent, Magnet, and Metalink files are not supported.

  -i INPUT_FILE, --input_file INPUT_FILE
                        Path to an aria2c formatted input file

  -d, --dry-run         Read the input file or urls and build the request, but
                        don't send it to the aria2 instance.

  --host HOST           The ip or fully qualified domain name where aria2 is
                        located. (Default: localhost)

  --port PORT           The port that aria2 listens on. (Default: 8600)

  --rpc-secret RPC_SECRET
                        Secret authorization token set for the aria2 rpc
                        interface.

  -v, --verbose         Increase level of output.

  -q, --quiet           Decrease level of output.

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

aria2r-0.9.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

aria2r-0.9.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file aria2r-0.9.1.tar.gz.

File metadata

  • Download URL: aria2r-0.9.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.8

File hashes

Hashes for aria2r-0.9.1.tar.gz
Algorithm Hash digest
SHA256 599c93e5667f3f85d82bbcc25fdcbae7b293af0468922f41347fbcf53bab317f
MD5 8d86c4383093798c32afa9df19b95a95
BLAKE2b-256 6e3d5f71f9f77645462c7673d0fad39f9f09db32c1f2f5faaf27af151e6c31a3

See more details on using hashes here.

File details

Details for the file aria2r-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: aria2r-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.8

File hashes

Hashes for aria2r-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4313e8cd6651925b157500b16678454889381052c3d1b8289e48f7b6413d9c10
MD5 633d18812f1e5f05a7df1615ed39f50b
BLAKE2b-256 483498699fbac49fa26644f8165653fcc6db21c4d0280cf3fe2dcc52cbd4ad94

See more details on using hashes here.

Supported by

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