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.0

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.0
File Size Uploaded
mini_tqdm-0.1.0.tar.gz 2.7 kB Details

Built distribution (wheel)

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

Total release size: 6.2 kB

Release files / mini_tqdm-0.1.0.tar.gz

Download URL mini_tqdm-0.1.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e27ce61b736acf72bacc29790e9525832d060628181ff7032ec2a4f1db2a7db4
BLAKE2b-256 checksum
How to use checksums
637e1f4c82379490346cca527ec78d2970f31d769894b5e63a31d3118ff7e24c
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.0-py3-none-any.whl

Download URL mini_tqdm-0.1.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8274473716466fa4f4abdddd0da3ce26a68183cffc4736b57b6a1795625464de
BLAKE2b-256 checksum
How to use checksums
950dfcb5174d4f95d755153acf342fbd3f1f71cffeb2330691a327dce4698ee3
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

0.1.1

2 release files

This release

0.1.0 This release

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