Skip to main content

mini-tqdm

A small progress bar for Python loops. Wraps any list, range, or generator and prints a live bar with elapsed time, ETA, and iteration rate.

demo

Install

pip install mini-tqdm

Usage

from mini_tqdm import MiniTqdm
import time

# Basic list
for item in MiniTqdm(range(100), desc="Training"):
    time.sleep(0.05)

# Generator with explicit total
def stream():
    yield from range(50)

for item in MiniTqdm(stream(), total=50, desc="Loading"):
    time.sleep(0.05)

# Silence the bar without changing call sites
for item in MiniTqdm(range(100), disable=True):
    time.sleep(0.05)

Output:

Training: [████████████--------] 60/100 | Elapsed: 3.0s | ETA: 2.0s | 20.00it/s

Parameters

Parameter Default Description
iterable required any iterable
total None explicit total for generators; inferred via len() if omitted
desc "" label prefix shown before the bar
disable False pass True to suppress all output
file sys.stderr where to write the bar

When total is unknown, mini-tqdm shows a spinner and running count instead of a bar.

License

MIT

Release files for mini-tqdm 0.1.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-tqdm 0.1.1
File Size Uploaded
mini_tqdm-0.1.1.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mini-tqdm 0.1.1
File Interpreter ABI Platform
mini_tqdm-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.3 kB

Release files / mini_tqdm-0.1.1.tar.gz

Download URL mini_tqdm-0.1.1.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
59869ffa5f397ede085ce9e570a111fe65265ad0d69b880b6f50f4b397091d1e
BLAKE2b-256 checksum
How to use checksums
0bf8feda02b770d7bc261be3bb48fc26f25a513e5c87faee48c35e5844ddccc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / mini_tqdm-0.1.1-py3-none-any.whl

Download URL mini_tqdm-0.1.1-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0a06c1d2ddb4935c5d81c890f3c4f761a4fa0c5854f85953c36421429ac7f79
BLAKE2b-256 checksum
How to use checksums
ca683ebbf72b3ce1f43609fe7c882185bd2468526bba698a51999f2d723a6b5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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