https://github.com/maxludden/maxprogress
https://github.com/maxludden/maxprogress
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/maxludden/maxprogress
- Owner: maxludden
- Created: 2022-10-31T09:19:27.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-20T06:52:07.000Z (over 3 years ago)
- Last Synced: 2023-03-08T18:43:05.876Z (over 3 years ago)
- Language: Python
- Size: 178 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MaxProgress 0.4.2
Updated dependencies to match fellow helper scripts: maxconsole and maxcolor.
### MaxProgress 0.3.0
Updated to match dependencies with fellow helper scripts: maxconsole and maxcolor.
### MaxProgress 0.2.0
Maxprogress provides a thin wrapper around rich’s Progress Bar class. It generates a custom formatted progress bar.

## Installation
MaxProgress is available on PyPI and able to be installed with pip, pdm, or your favorite package manager.
#### Pip
```bash
pip install maxprogress
```
#### PDM
```bash
pdm add maxprogress
```
## Usage
```python
from maxprogress import get_progress
progress = get_progress():
with progress:
task1 = progress.add_task("[red]Downloading...", total=200)
task2 = progress.add_task("[green]Processing...", total=200)
task3 = progress.add_task("[cyan]Cooking...", total=200)
while not progress.finished:
progress.update(task1, advance=0.5)
progress.update(task2, advance=0.3)
progress.update(task3, advance=0.9)
time.sleep(0.02)
```