Progress

1.6.1 · active · verified Sat Apr 11

The `progress` library (current version 1.6.1) provides easy-to-use, text-based progress bars and spinners for command-line interfaces. It offers a straightforward API with several built-in styles and aims for minimalism and speed, without external dependencies.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates creating a basic progress bar using `progress.bar.Bar`. The `with` statement ensures the bar is properly finalized even if an error occurs. Call `bar.next()` in each iteration to advance the progress.

import time
from progress.bar import Bar

# Example with a simple Bar
with Bar('Processing...') as bar:
    for i in range(100):
        # Simulate work
        time.sleep(0.02)
        bar.next()

view raw JSON →