A simple progress bar for terminal written in python3.10.2
Inspired by a YouTube video by NeuralNine.
Name |
Description |
total (int) |
Number of tasks to be completed. |
long (bool) |
True by default, False gives shorter bar, keyword only. |
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". |
from progressbar.ProgressBar import ProgressBar
pb = ProgressBar(100)
...
pb.add()
pb.display()