Skip to main content

Mini Download UI

A minimalist and cross-platform Python module providing a terminal download using ANSI escape sequences.

This project focuses on simplicity and clarity:

  • No external dependencies
  • Pure Python
  • Works on Linux, macOS and modern Windows terminals

Features

  • APT style progress bar
  • Log area displayed above the progress bar
  • Progress percentage indicator
  • Adaptive to terminal size
  • ANSI-based rendering
  • Simple and explicit usage

Requirements

  • Python 3.8+
  • ANSI-compatible terminal
    • Linux terminals
    • macOS Terminal / iTerm2
    • Windows Terminal, PowerShell 7+, WSL

Installation

No installation step required. Simply install the lib with pip

pip install mini-download-ui

Basic Usage

from mini_dl_ui import DownloadUI
import time

ui = DownloadUI()

for i in range(101):
    ui.progress(i)
    ui.log(f"Downloading package {i}/100")
    time.sleep(0.05)

ui.close()

Alternative Usage

from mini_dl_ui import DownloadUI
import time

with DownloadUI() as ui:
    for i in range(101):
        if i in (10, 40, 70):
            ui.log(f"Downloading package {i}/100")
        ui.progress(i)
        time.sleep(0.03)
    ui.log("Finished.")
    time.sleep(0.5)

Example Terminal Output

[LOG] Downloading package 48/100
[LOG] Downloading package 49/100
[LOG] Downloading package 50/100
--------------------------------------------------
[##########                                  ] 50%

Threaded Usage

import threading
import time
from mini_dl_ui import DownloadUI

ui = DownloadUI(fill='=')

def worker():
    for i in range(101):
        ui.progress(i)
        ui.log(f"Chunk {i} received")
        time.sleep(0.03)
    ui.close()

threading.Thread(target=worker).start()

Example Terminal Output

[LOG] Downloading package 48/100
[LOG] Downloading package 49/100
[LOG] Downloading package 50/100
--------------------------------------------------
[=========                                  ] 50%

Metadata

Release files for mini-download-ui 1.0.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 mini-download-ui 1.0.1
File Size Uploaded Provenance Actions
mini_download_ui-1.0.1.tar.gz 3.1 kB Without provenance Details for mini_download_ui-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mini-download-ui 1.0.1
File Interpreter ABI Platform Actions
mini_download_ui-1.0.1-py3-none-any.whl Python 3 none any Details for mini_download_ui-1.0.1-py3-none-any.whl

Total release size: 6.6 kB

Release files / mini_download_ui-1.0.1.tar.gz

Download URL mini_download_ui-1.0.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8a664a2a5a96d85f3b24bd2a9982a87ceda554be35a4dfb0b801942b121180eb
BLAKE2b-256 checksum
How to use checksums
bac506c2b42dee901dd1c046056e46e834518fe61a5ac0f40ca3472abedfb894
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / mini_download_ui-1.0.1-py3-none-any.whl

Download URL mini_download_ui-1.0.1-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b1f2254a214cad57b98c22f6b9022da9dc08dbf97a93c41faa453528ea3a0df
BLAKE2b-256 checksum
How to use checksums
abc2e18c333de43b42f8676484b468dbc316e2d11c47fa5e7e5f1f142ccaa61c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for mini-download-ui 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

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