Skip to main content

aria2tui: A TUI Frontend for the Aria2c Download Manager

Project description

aria2tui

Aria2TUI is a download management tool. It acts as a TUI client for the aria2c download utility, facilitating bulk downloading, torrenting, queue control, the fine-tuning of download options (e.g., piece length, user-agent, max speed, etc.), downloading via proxy, and much more.

Aria2tui communicates with an aria2c daemon over RPC. The UI is provided by my TUI picker listpick.

https://github.com/user-attachments/assets/7c77a13f-90c7-4e67-9946-7b7009c835ad

Quickstart

See the wiki.

Install aria2tui using pip:

python -m pip install aria2tui

Create a config.toml file and place it in ~/.config/aria2tui/. Here is the default config:

####################################################
##        Default config for Aria2TUI
##   Some common config options have been provided
##      and commented for your convenience
####################################################

[general]

port = 6800
token = "1234"
url = "http://localhost"

# Used for starting and restarting.
startup_commands = ["aria2c"]
restart_commands = ["pkill aria2c && sleep 1 && aria2c"]
# startup_commands = ["systemctl --user start aria2d.service"]
# restart_commands = ["systemctl --user restart aria2d.service", "notify-send 'Aria2c has been restarted.'"]

# Used when "Edit Config" option is chosen in the main menu
aria2_config_path = "~/.config/aria2/aria2.conf"

# File managers 
## terminal_file_manager will open in the same terminal as Aria2TUI in a blocking fashion;
## gui_file_manager will fork a new process and open a new application.
terminal_file_manager = "yazi"
gui_file_manager = "kitty yazi"


# Data refresh time (in seconds) for the global stats and for the download data.
global_stats_timer = 1
refresh_timer = 2

# Scrolls by default
paginate = false

[appearance]
theme = 3

# Whether the right pane (DL Info, DL graphs) should be displayed by default when opening aria2tui
show_right_pane_default = false

# Which pane should be displayed first when the sidebar is opened.
# [0=DL Files (info), 1=speed graph, 2=progress graph, 3=download pieces]
right_pane_default_index = 0

Note: If you have not used aria2c before then download this file and put it in ~/.config/aria2/. In any case, since we are using RPC to communicate with aria2c, make sure that you have the following set in your config: enable-rpc rpc-listen-all rpc-allow-origin-all.

After creating ~/.config/aria2tui/config.toml and ensuring that your url, port, and secret token are correct, you are all set to go:

aria2tui

Tips

  • See the wiki, which covers basic usage.
  • Press '?' in aria2tui to see the help page which will list the available keybinds.
  • If you have problems starting aria2c, check that you have an aria2c config file at ~/.config/aria2/aria2.conf
  • Ctrl-l will redraw the screen; useful if there are stray artifacts after dropping to the shell
  • Toggle the right-pane with ' and cycle between right-pane views with ".
  • By default the cursor in aria2tui will track the highlighted download task--that is, if you are hovering over an active download which finishes and moves to the bottom of the list, then the cursor will remain on that task. This is usually what you want. However, sometimes you want to stay at a particular place in the download list--perhaps you want to remain at the top and watch the currently active downloads. To do this you can activate 'pin cursor' mode which will pin the cursor to an index rather than to a particular row.
    • Press ` and type pc. This will toggle pin cursor mode.
    • You can also press ~ to open the settings and then select the pin cursor option.
      • Note: The pin symbol  will be shown in the footer to indicate the cursor tracking mode.
  • If you are performing bulk operations and the downloads are changing state rapidly--e.g., hundreds of images are changing from active/waiting to completed--it is recommended to toggle the auto-refresh option to ensure data integrity while selecting which downloads to operate upon.
    • This can be done by either:
      • exiting to the main menu ('q') and going to "View Downloads"; or
      • Pressing ~ and toggling auto-refresh.
    • Note: The refresh symbol  at the top right indicates that you are in auto-refresh mode.

Important

  • Aria2TUI was made to work on UNIX systems.
  • Changing download options for a task that is in progress--whether active or paused--will most likely restart the download (!!).

Aria2TUI makes use of...

  • yazi for selecting torrent files.
  • nvim for viewing/editing download options as well as adding URIs, magnet links and torrent files
  • curses for controlling the terminal display
  • listpick for the terminal user-interface
  • plotille for graphs
  • pyperclip for clipboard access

Similar Projects

  • Ariang A web client for aria2c

Support and Feedback

Feel free to request features. Please report any errors you encounter with appropriate context.

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

aria2tui-0.1.12.0.tar.gz (42.0 kB view details)

Uploaded Source

Built Distribution

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

aria2tui-0.1.12.0-py3-none-any.whl (50.1 kB view details)

Uploaded Python 3

File details

Details for the file aria2tui-0.1.12.0.tar.gz.

File metadata

  • Download URL: aria2tui-0.1.12.0.tar.gz
  • Upload date:
  • Size: 42.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aria2tui-0.1.12.0.tar.gz
Algorithm Hash digest
SHA256 0bc8490e8328ab5aaae9727ed5ca16424aae07791a8120f7e69f61d0580f0675
MD5 245b55af1ceaa40b84877f0961d4f561
BLAKE2b-256 a5d0d12c50f26ec0966e4ee65763262c11a3542c4f410d22aa18824aa0d5f9a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for aria2tui-0.1.12.0.tar.gz:

Publisher: publish-to-pypi.yml on grimandgreedy/aria2tui

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aria2tui-0.1.12.0-py3-none-any.whl.

File metadata

  • Download URL: aria2tui-0.1.12.0-py3-none-any.whl
  • Upload date:
  • Size: 50.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aria2tui-0.1.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c64a054162b5dd30b0600ffe60c9784c8b99ff47ab90324a45d59441f80bdf1b
MD5 094b7c8cdf3f828f6e601eabe4c7c5c4
BLAKE2b-256 8455b99abf7e3ee64e8fdbad86e184106be8ad8dde951b1fe9c8402df7fb8798

See more details on using hashes here.

Provenance

The following attestation bundles were made for aria2tui-0.1.12.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on grimandgreedy/aria2tui

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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