Metadata-Version: 2.4
Name: progressbar
Version: 2.6
Summary: Text-mode progress bar library for Python.
Author-email: Nilton Volpato <nilton.volpato@gmail.com>
Maintainer-email: Nilton Volpato <nilton.volpato@gmail.com>
License-Expression: LGPL-2.1-or-later OR BSD-3-Clause
Project-URL: Homepage, https://github.com/NiltonVolpato/python-progressbar
Project-URL: Repository, https://github.com/NiltonVolpato/python-progressbar
Project-URL: Issues, https://github.com/NiltonVolpato/python-progressbar/issues
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: User Interfaces
Classifier: Topic :: Terminals
Requires-Python: >=2.7
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Dynamic: license-file

# Python Progress Bar

A simple, customizable text-based progress bar library for Python.

![progressbar demo](./assets/progressbar.gif)

## Installation

```bash
pip install progressbar
```

## Usage

The `ProgressBar` class is the core of the library. It can be used as follows:

```python
import time
from progressbar import ProgressBar, Percentage, Bar

pbar = ProgressBar(widgets=[Percentage(), Bar()], maxval=10).start()
for i in range(10):
    time.sleep(0.1)
    pbar.update(i + 1)
pbar.finish()
```

You can also use the progress bar as an iterator:

```python
import time
from progressbar import ProgressBar

pbar = ProgressBar()
for i in pbar(range(10)):
    time.sleep(0.1)
```

## Widgets

The progress bar is highly customizable through the use of widgets. The following widgets are available:

*   `AnimatedMarker`: An animated marker that cycles through a sequence of characters.
*   `Bar`: A progress bar that fills from left to right.
*   `BouncingBar`: A progress bar with a bouncing marker.
*   `Counter`: A counter of the current progress.
*   `ETA`: Estimates the time of arrival (ETA).
*   `FileTransferSpeed`: Displays the file transfer speed.
*   `FormatLabel`: Displays a formatted label with progress information.
*   `Percentage`: Displays the progress as a percentage.
*   `ReverseBar`: A progress bar that fills from right to left.
*   `SimpleProgress`: Displays the progress as a simple count (e.g., "5 of 47").
*   `Timer`: Displays the elapsed time since the progress bar was started.

You can create your own widgets by subclassing `progressbar.Widget`.
