xoutil.progress
- Console progress utils¶
Tool to show a progress percent in the terminal.
-
class
xoutil.progress.
Progress
(max_value=100, delta=1, first_message=None, display_width=None)[source]¶ Print a progress percent to the console. Also the elapsed and the estimated times.
To signal an increment in progress just call the instance and (optionally) pass a message like in:
progress = Progress(10) for i in range(10): progress()