ProgressPrinter#

class wattson.util.progress_printer.ProgressPrinter(max_progress: int, current_progress: int = 0, show_bar: bool = True, show_total: bool = True, show_current: bool = True, enable_print: bool = True, auto_stop: bool = True, stop_event: Event | None = None, on_start_margin: bool = True, on_stop_margin: bool = False, show_custom_prefix: bool = False)#

Bases: object

Allows to print a progress bar and indicator on the same line in the terminal.

Methods

__init__

inc

set_custom_prefix

set_progress

start

stop

update

__init__(max_progress: int, current_progress: int = 0, show_bar: bool = True, show_total: bool = True, show_current: bool = True, enable_print: bool = True, auto_stop: bool = True, stop_event: Event | None = None, on_start_margin: bool = True, on_stop_margin: bool = False, show_custom_prefix: bool = False)#