/progressbar

Terminal progress bar written in python

Primary LanguagePython

Terminal progress bar

A simple progress bar for terminal written in python3.10.2

Inspired by a YouTube video by NeuralNine.


Parameters

Name Description
total (int) Number of tasks to be completed.
long (bool) True by default, False gives shorter bar, keyword only.

Methods

Name Parameters Return Description
add - None Adds one to the number of completed tasks.
display description (Optional[str]) None Displays the bar and completed percentage. Displays "Task: ..." if description is given, otherwise "N/A".

Requirements

Name
python3.8+
colorama

Usage

from progressbar.ProgressBar import ProgressBar
pb = ProgressBar(100)
...
pb.add()
pb.display()