# tqdm

> zap: A Fast, Extensible Progress Bar for Python and CLI

- Type: agent or tool
- Field: Developer Tools
- Repository: https://github.com/tqdm/tqdm
- GitHub stars: 31392
- Licence: NOASSERTION
- Language: Python
- Last push: 2026-11-02
- Page: https://imutechz.in/agents/tqdm

## What it is
tqdm is a fast, extensible progress bar library for Python and command-line use. It wraps any iterable to display a smart progress meter with minimal overhead ( 60ns per iteration). Works across platforms in consoles, GUIs, and Jupyter notebooks without external dependencies. Can also run as a CLI module between pipes to show throughput progress.

## Features
- Wrap any iterable with tqdm() for automatic progress display
- trange() shortcut for tqdm(range())
- Manual control via set description(), update(), and context managers
- CLI module mode pipes stdin to stdout while printing progress to stderr
- Smart time prediction and display skipping algorithms
- Cross-platform: Linux, Windows, Mac, BSD, Solaris; works in terminals and Jupyter

## Pros
- Low overhead ( 60ns/iteration, 80ns with GUI)
- Zero dependencies (not even curses)
- Works in consoles, GUIs, and IPython/Jupyter
- Predictive stats when total is known or iterable has len()

## Cons
- Requires environment supporting carriage return (\r) and line feed (\n)
- Snap binaries are CLI-only and not importable in Python
- Predictive stats need optional total or len()-supporting iterable

## Install
```
pip install tqdm
```

## Usage
```
from tqdm import tqdm
for i in tqdm(range(10000)):
    ...
```

Tags: progress-bar, python, cli, jupyter, iterable, pipeline, low-overhead, cross-platform
