Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
progressbar2
v4.6.0

progressbar2ΒΆ

Python progress bars

Your work.
In full colour.

From a single loop to several jobs at once. Show progress, keep your logs readable, and choose the details that matter.

Add progress to your next script.

pip install progressbar2

Already using tqdm? Find the migration guide.

Colours, gradients, and animated markers

Recorded progressbar2 output. Read the guide and run the source locally.

What are you working on?

Downloads and files

Show transfer speed, data size, and the estimated time remaining.

Track a transfer

Start with one loop.

Wrap your iterable with progressbar. The bar updates as each item is processed.

Then add the widgets you need: an ETA, a counter, a transfer speed, or your own value.

Follow the tutorial

Try a complete example

Run this example in your browser. Python downloads when you press Run.

A working progress bar in one line
"""Wrap an iterable to show its progress."""

import time

import progressbar


def main() -> None:
    for _ in progressbar.progressbar(range(100), fast=False):
        time.sleep(0.01)


if __name__ == '__main__':
    main()