# Python progress bar libraries

Python progress bar libraries show how far a loop, download, or long task has advanced in a terminal or notebook. A progress bar wraps an iterable or receives explicit updates and redraws its display as the count grows. These libraries let command-line tools and data scripts show users how much of a job remains.

## Popularity

| Library | Monthly downloads | Stars | Last release | License |
| --- | --- | --- | --- | --- |
| [Click](#click) | 1.1B | 17.8K | Nov 2026 | BSD-3-Clause |
| [Rich](#rich) | 575.1M | 57.8K | Apr 2026 | MIT |
| [tqdm](#tqdm) | 497.2M | 31.4K | Sep 2026 | MPL-2.0 AND MIT |
| [prompt_toolkit](#prompt-toolkit) | 225.0M | 10.6K | Jul 2026 | BSD-3-Clause |
| [ipywidgets](#ipywidgets) | 36.7M | 3.3K | Aug 2026 | BSD-3-Clause |
| [progressbar2](#progressbar) | 17.7M | 880 | Nov 2026 | BSD-3-Clause |
| [Proglog](#proglog) | 5.5M | 112 | May 2025 | MIT |
| [alive-progress](#alive-progress) | 3.1M | 6.3K | Jul 2025 | MIT |

Downloads: PyPI, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

[tqdm](#tqdm) has the most monthly downloads among the dedicated progress bar libraries in this comparison, at 497.2M.

## Capabilities

| Library | Iterable progress adapter | Multiple bar layouts |
| --- | --- | --- |
| [Click](#click) | Yes | No |
| [Rich](#rich) | Yes | Yes |
| [tqdm](#tqdm) | Yes | Yes |
| [prompt_toolkit](#prompt-toolkit) | Yes | Yes |
| [ipywidgets](#ipywidgets) | No | Yes |
| [progressbar2](#progressbar) | Yes | Yes |
| [Proglog](#proglog) | Yes | Yes |
| [alive-progress](#alive-progress) | Yes | No |

## Libraries

### Click

[GitHub](https://github.com/pallets/click) · [PyPI](https://pypi.org/project/click) · [Docs](https://click.palletsprojects.com/en/stable/api/#click.progressbar)

Builds composable command-line interfaces.

- Downloads / mo: 1.1B
- Stars: 17.8K
- Last release: 8.5.1
- License: BSD-3-Clause
- Capabilities: [From the Click docs](https://click.palletsprojects.com/en/stable/api/#click.progressbar)

```sh
python3.13 -m pip install click==8.5.1
```

**CTFd/ctfcli** (223 stars)

[CTFd/ctfcli](https://github.com/CTFd/ctfcli) 

```python
def verify(self, challenge: str | None = None, ignore: tuple[str] = ()) -> int:
    log.debug(f"verify: (challenge={challenge}, ignore={ignore})")

    if challenge:
        challenge_instance = self._resolve_single_challenge(challenge)
        if not challenge_instance:
            return 1

        local_challenges = [challenge_instance]
    else:
        local_challenges = self._resolve_all_challenges()

    if isinstance(ignore, str):
        ignore = (ignore,)

    remote_challenges = Challenge.load_installed_challenges()
    if len(local_challenges) > 1:
        # Issue a warning if there are extra challenges on the remote that do not have a local version
        local_challenge_names = [c["name"] for c in local_challenges]

        for remote_challenge in remote_challenges:
            if remote_challenge["name"] not in local_challenge_names:
                click.secho(
                    f"Found challenge '{remote_challenge['name']}' in CTFd, but not in .ctf/config\n"
                    "Please add the local challenge if you wish to manage it with ctfcli\n",
                    fg="yellow",
                )

    failed_verifications, challenges_in_sync, challenges_out_of_sync = [], [], []
    with click.progressbar(local_challenges, label="Verifying challenges") as challenges:
        for challenge_instance in challenges:
            try:
                if not challenge_instance.verify(ignore=ignore):
                    challenges_out_of_sync.append(challenge_instance)
                else:
                    challenges_in_sync.append(challenge_instance)

            except ChallengeException as e:
                click.secho(str(e), fg="red")
                failed_verifications.append(challenge_instance)

    if len(failed_verifications) == 0:
        click.secho("Success! All challenges verified!", fg="green")

        if len(challenges_in_sync) > 0:
            click.secho("Challenges in sync:", fg="green")
            for challenge_instance in challenges_in_sync:
                click.echo(f" - {challenge_instance}")

        if len(challenges_out_of_sync) > 0:
            click.secho("Challenges out of sync:", fg="yellow")
            for challenge_instance in challenges_out_of_sync:
                click.echo(f" - {challenge_instance}")

        if len(challenges_out_of_sync) >= 1:
            return 2

        return 0

    click.secho("Verification failed for:", fg="red")
    for challenge_instance in failed_verifications:
        click.echo(f" - {challenge_instance}")

    return 1
```

[ctfcli/cli/challenges.py](https://github.com/CTFd/ctfcli/blob/f6a1cbad46606e437a798a243aba700205fab898/ctfcli/cli/challenges.py) · [More projects using Click →](https://dashboard.exa.ai/playground/search?q=click%20GitHub%20projects)

**Quickstart**

```python
import click

with click.progressbar(range(3)) as bar:
    for _ in bar:
        pass

```

From [termui.py](https://api.github.com/repos/pallets/click/contents/src/click/termui.py?ref=8.5.1)

### Rich

[GitHub](https://github.com/Textualize/rich) · [PyPI](https://pypi.org/project/rich) · [Docs](https://rich.readthedocs.io/en/stable/progress.html)

Builds configurable progress displays with multiple tasks, custom columns, and console output.

- Downloads / mo: 575.1M
- Stars: 57.8K
- Last release: 15.0.0
- License: MIT
- Capabilities: [From the Rich docs](https://rich.readthedocs.io/en/stable/progress.html)

**Strengths**

- **Shows several concurrent task bars.** Track separate jobs together with task identifiers and individual totals.
- **Places logs above active bars.** Print through progress.console to preserve the live progress display.

**Watch out for**

- **Notebook progress needs manual refresh.** Call refresh or update with refresh enabled when using Jupyter.
- **Tasks share their display columns.** Use separate Progress instances when tasks need different columns.

```sh
python3.13 -m pip install rich==15.0.0
```

**Comfy-Org/comfy-cli** (1.1K stars)

[Comfy-Org/comfy-cli](https://github.com/Comfy-Org/comfy-cli) 

```python
def show_progress(iterable, total, description="Downloading..."):
    """
    Display progress bar for iterable processes, especially useful for file downloads.
    Each item in the iterable should be a chunk of data, and the progress bar will advance
    by the size of each chunk.

    Args:
        iterable (Iterable[bytes]): An iterable that yields chunks of data.
        total (int): The total size of the data (e.g., total number of bytes) to be downloaded.
        description (str): Description text for the progress bar.

    Yields:
        bytes: Chunks of data as they are processed.
    """
    with Progress(transient=True) as progress:
        task = progress.add_task(description, total=total)
        for chunk in iterable:
            yield chunk
            progress.update(task, advance=len(chunk))
```

[comfy_cli/ui.py](https://github.com/Comfy-Org/comfy-cli/blob/545d57658cb3288e99de533c0405c52452b03ca6/comfy_cli/ui.py) · [More projects using Rich →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20rich%20for%20streamed-file%20reads%2C%20byte-counted%20downloads%20and%20training%20progress%20controls&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```python
from rich.progress import track

for _ in track(range(3)):
    pass

```

From [progress.html](https://rich.readthedocs.io/en/stable/progress.html)

### tqdm

[GitHub](https://github.com/tqdm/tqdm) · [PyPI](https://pypi.org/project/tqdm) · [Docs](https://tqdm.github.io/docs/tqdm/)

Adds progress meters to iterables, manual counters, and command-line pipelines.

- Downloads / mo: 497.2M
- Stars: 31.4K
- Last release: 4.70.1
- License: MPL-2.0 AND MIT
- Capabilities: [From the tqdm docs](https://tqdm.github.io/docs/tqdm/)

**Strengths**

- **Wraps existing iteration loops.** Add tqdm around an iterable or update a counter manually.
- **Tracks nested progress bars.** Show an outer job and its inner work on separate lines.

**Watch out for**

- **Regular prints disrupt active bars.** Use tqdm.write or redirect logging while a progress bar is open.
- **Nested bars need cursor movement.** Use a compatible terminal for separate live nested displays.

```sh
python3.13 -m pip install tqdm==4.70.1
```

**pytorch/vision** (18.0K stars)

[pytorch/vision](https://github.com/pytorch/vision) 

```python
def _urlretrieve(url: str, filename: Union[str, pathlib.Path], chunk_size: int = 1024 * 32) -> None:
    with urllib.request.urlopen(urllib.request.Request(url, headers={"User-Agent": USER_AGENT})) as response:
        with open(filename, "wb") as fh, tqdm(total=response.length, unit="B", unit_scale=True) as pbar:
            while chunk := response.read(chunk_size):
                fh.write(chunk)
                pbar.update(len(chunk))
```

[torchvision/datasets/utils.py](https://github.com/pytorch/vision/blob/4260301135e34180d865426765487113f84e7707/torchvision/datasets/utils.py) · [More projects using tqdm →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20tqdm%20for%20streamed-file%20reads%2C%20byte-counted%20downloads%20and%20training%20progress%20controls&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```python
from tqdm import tqdm

for _ in tqdm(range(3)):
    pass

```

From [README.rst](https://tqdm.github.io/docs/tqdm/)

### prompt_toolkit

[GitHub](https://github.com/prompt-toolkit/python-prompt-toolkit) · [PyPI](https://pypi.org/project/prompt-toolkit) · [Docs](https://python-prompt-toolkit.readthedocs.io/en/stable/pages/progress_bars.html)

Builds interactive command lines in Python.

- Downloads / mo: 225.0M
- Stars: 10.6K
- Last release: 3.0.53
- License: BSD-3-Clause
- Capabilities: [From the prompt_toolkit docs](https://python-prompt-toolkit.readthedocs.io/en/stable/pages/progress_bars.html)

```sh
python3.13 -m pip install prompt-toolkit==3.0.53
```

**papis/papis** (1.8K stars)

[papis/papis](https://github.com/papis/papis) 

```python
def progress_bar(iterable: Iterable[T]) -> Iterable[T]:
    from prompt_toolkit.shortcuts import ProgressBar
    from prompt_toolkit.shortcuts.progress_bar import formatters
    from prompt_toolkit.styles import Style

    # NOTE: this style is chosen to make it look like the default tqdm bar
    style = Style.from_dict({"bar-a": "reverse"})
    fmt = [
        formatters.Percentage(),
        formatters.Bar(start="|", end="|", sym_a=" ", sym_b=" ", sym_c=" "),
        formatters.Text(" "),
        formatters.Progress(),
        formatters.Text(" ["),
        formatters.TimeElapsed(),
        formatters.Text("<"),
        formatters.TimeLeft(),
        formatters.Text(", "),
        formatters.IterationsPerSecond(),
        formatters.Text(" it/s]"),
        formatters.Text("  "),
    ]

    with ProgressBar(style=style, formatters=fmt) as pb:
        yield from pb(iterable)
```

[papis/tui/utils.py](https://github.com/papis/papis/blob/f08274b6c3cba385397b29470f81158f51f3603e/papis/tui/utils.py) · [More projects using prompt_toolkit →](https://dashboard.exa.ai/playground/search?q=prompt-toolkit%20GitHub%20projects)

**Quickstart**

```python
from prompt_toolkit.shortcuts import ProgressBar

with ProgressBar() as progress:
    for _ in progress(range(3)):
        pass

```

From [progress_bars.html](https://python-prompt-toolkit.readthedocs.io/en/stable/pages/progress_bars.html)

### ipywidgets

[GitHub](https://github.com/jupyter-widgets/ipywidgets) · [PyPI](https://pypi.org/project/ipywidgets) · [Docs](https://ipywidgets.readthedocs.io/en/stable/reference/ipywidgets.html)

Provides interactive widgets for Jupyter.

- Downloads / mo: 36.7M
- Stars: 3.3K
- Last release: 8.1.9
- License: BSD-3-Clause
- Capabilities: [From the ipywidgets docs](https://ipywidgets.readthedocs.io/en/stable/reference/ipywidgets.html)

```sh
python3.13 -m pip install ipywidgets==8.1.9 ipython
```

**Quickstart**

```python
from ipywidgets import FloatProgress
from IPython.display import display

bar = FloatProgress(value=0, min=0, max=3)
display(bar)
bar.value = 1

```

From [ipywidgets.html](https://ipywidgets.readthedocs.io/en/stable/reference/ipywidgets.html) · [Find projects using ipywidgets →](https://dashboard.exa.ai/playground/search?q=ipywidgets%20GitHub%20projects)

### progressbar2

[GitHub](https://github.com/wolph/python-progressbar) · [PyPI](https://pypi.org/project/progressbar2) · [Docs](https://progressbar-2.readthedocs.io/en/latest/progressbar.bar.html)

Composes widget-based progress bars and named concurrent terminal displays.

- Downloads / mo: 17.7M
- Stars: 880
- Last release: 4.7.1
- License: BSD-3-Clause
- Capabilities: [From the progressbar2 docs](https://progressbar-2.readthedocs.io/en/latest/progressbar.bar.html)

**Strengths**

- **Combines named concurrent bars.** Update several tasks through a shared MultiBar display.
- **Places printed logs above bars.** Enable redirect_stdout to preserve the display while printing.

**Watch out for**

- **Child bars need explicit completion.** Call finish on each child before leaving its MultiBar context.
- **IDLE cannot render terminal bars.** Use a terminal that supports the display’s cursor controls.

```sh
python3.13 -m pip install progressbar2==4.7.1
```

**coqui-ai/STT** (2.6K stars)

[coqui-ai/STT](https://github.com/coqui-ai/STT) 

```python
def create_progressbar(*args, **kwargs):
    # Progress bars in stdout by default
    if "fd" not in kwargs:
        kwargs["fd"] = sys.stdout

    if Config.show_progressbar:
        return progressbar.ProgressBar(*args, **kwargs)

    return progressbar.NullBar(*args, **kwargs)
```

[training/coqui_stt_training/util/config.py](https://github.com/coqui-ai/STT/blob/a562b940501937c0dd1d16e248dc15dc59089626/training/coqui_stt_training/util/config.py) · [More projects using progressbar2 →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20progressbar2%20for%20streamed-file%20reads%2C%20byte-counted%20downloads%20and%20training%20progress%20controls&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```python
import progressbar

for _ in progressbar.ProgressBar()(range(3)):
    pass

```

From [README.md](https://progressbar-2.readthedocs.io/en/latest/progressbar.bar.html)

### Proglog

[GitHub](https://github.com/Edinburgh-Genome-Foundry/Proglog) · [PyPI](https://pypi.org/project/proglog) · [Docs](https://api.github.com/repos/Edinburgh-Genome-Foundry/proglog/contents/proglog/proglog.py?ref=v0.1.12)

Manages logs and progress bars for consoles, notebooks, and the web.

- Downloads / mo: 5.5M
- Stars: 112
- Last release: 0.1.12
- License: MIT
- Capabilities: [From the Proglog docs](https://api.github.com/repos/Edinburgh-Genome-Foundry/proglog/contents/proglog/proglog.py?ref=v0.1.12)

```sh
python3.13 -m pip install proglog==0.1.12
```

**Zulko/moviepy** (15.2K stars)

[Zulko/moviepy](https://github.com/Zulko/moviepy) 

```python
@requires_duration
@use_clip_fps_by_default
def iter_frames(self, fps=None, with_times=False, logger=None, dtype=None):
    """Iterates over all the frames of the clip.

    Returns each frame of the clip as a HxWxN Numpy array,
    where N=1 for mask clips and N=3 for RGB clips.

    This function is not really meant for video editing. It provides an
    easy way to do frame-by-frame treatment of a video, for fields like
    science, computer vision...

    Parameters
    ----------

    fps : int, optional
      Frames per second for clip iteration. Is optional if the clip already
      has a ``fps`` attribute.

    with_times : bool, optional
      Ff ``True`` yield tuples of ``(t, frame)`` where ``t`` is the current
      time for the frame, otherwise only a ``frame`` object.

    logger : str, optional
      Either ``"bar"`` for progress bar or ``None`` or any Proglog logger.

    dtype : type, optional
      Type to cast Numpy array frames. Use ``dtype="uint8"`` when using the
      pictures to write video, images..

    Examples
    --------


    .. code:: python

        # prints the maximum of red that is contained
        # on the first line of each frame of the clip.
        from moviepy import VideoFileClip
        myclip = VideoFileClip('myvideo.mp4')
        print([frame[0,:,0].max()
              for frame in myclip.iter_frames()])
    """
    logger = proglog.default_bar_logger(logger)
    for frame_index in logger.iter_bar(
        frame_index=np.arange(0, int(self.duration * fps))
    ):
        # int is used to ensure that floating point errors are rounded
        # down to the nearest integer
        t = frame_index / fps

        frame = self.get_frame(t)
        if (dtype is not None) and (frame.dtype != dtype):
            frame = frame.astype(dtype)
        if with_times:
            yield t, frame
        else:
            yield frame
```

[moviepy/Clip.py](https://github.com/Zulko/moviepy/blob/211e4b15f6ce4f34a6a9efbfff40590e43a68f77/moviepy/Clip.py) · [More projects using Proglog →](https://dashboard.exa.ai/playground/search?q=proglog%20GitHub%20projects)

**Quickstart**

```python
from proglog import default_bar_logger

logger = default_bar_logger("bar")
for _ in logger.iter_bar(step=range(3)):
    pass

```

From [proglog.py](https://api.github.com/repos/Edinburgh-Genome-Foundry/proglog/contents/proglog/proglog.py?ref=v0.1.12)

### alive-progress

[GitHub](https://github.com/rsalmei/alive-progress) · [PyPI](https://pypi.org/project/alive-progress) · [Docs](https://api.github.com/repos/rsalmei/alive-progress/contents/README.md)

Shows animated progress, throughput, and final receipts with integrated print and logging hooks.

- Downloads / mo: 3.1M
- Stars: 6.3K
- Last release: 3.3.0
- License: MIT
- Capabilities: [From the alive-progress docs](https://api.github.com/repos/rsalmei/alive-progress/contents/README.md)

**Strengths**

- **Coordinates prints from different threads.** Print and logging hooks synchronize messages around the active bar.
- **Handles work without known totals.** Show activity and throughput before a reliable completion total is available.

**Watch out for**

- **Supports one active bar.** Choose another display for simultaneous nested progress bars.
- **Noninteractive output shows final receipts.** Expect completion receipts instead of animations in redirected or background output.

```sh
python3.13 -m pip install alive-progress==3.3.0
```

**poloclub/diffusiondb** (1.4K stars)

[poloclub/diffusiondb](https://github.com/poloclub/diffusiondb) 

```python
def unzip_all(files: list):
    """
    > Unzip all files in a list of files

    :param files: list
    :type files: list
    """
    with alive_bar(len(files), title="Unzipping files") as bar:
        for file in files:
            unzip_file(file)
            time.sleep(0.1)
            bar()
```

[scripts/download.py](https://github.com/poloclub/diffusiondb/blob/bf0b01ee26119e16436fa67656ccb611f61be95f/scripts/download.py) · [More projects using alive-progress →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20alive-progress%20for%20streamed-file%20reads%2C%20byte-counted%20downloads%20and%20training%20progress%20controls&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```python
from alive_progress import alive_bar

with alive_bar(3) as bar:
    for _ in range(3):
        bar()

```

From [README.md](https://api.github.com/repos/rsalmei/alive-progress/contents/alive_progress/core/progress.py?ref=v3.3.0)

## FAQ

### Which Python progress bar library should I use?

[tqdm](#tqdm) suits most loops and downloads, with a minimal iterable wrapper. [Rich](#rich) suits command-line tools that already render rich terminal output. [ipywidgets](#ipywidgets) suits progress bars inside Jupyter notebooks.

### What is tqdm?

[tqdm](#tqdm) is a progress meter that wraps any iterable or advances through explicit update calls. It can display byte counts with scaled units for downloads.

### What is Rich in Python?

[Rich](#rich) renders formatted text, tables, progress bars, syntax highlighting, and Markdown in the terminal. Its progress display tracks several tasks with configurable columns.

### How do I add a progress bar to a Python loop?

[tqdm](#tqdm) wraps the iterable in a loop and draws a bar that advances with each item. [Click](#click) offers the same pattern for applications built on Click.

## How this page was built

Data checked Nov 20, 2026.

Reproduce it with the Exa API:

```json
{
  "endpoint": "/search",
  "body": {
    "query": "Best Python progress bar libraries tqdm Rich alive-progress progressbar2 examples",
    "numResults": 5
  }
}
```

Docs: https://exa.ai/docs/reference/search
