Abstract base class for progress bars.
Subclass this to implement custom progress bar displays.
-
abstractmethod close()[source]
Close the progress bar.
-
abstractmethod set_postfix(metrics)[source]
Set postfix text with metrics.
- Parameters:
metrics (Dict[str, Any]) – Metrics to display.
-
abstractmethod start(total=None, desc='', unit='it')[source]
Start the progress bar.
- Parameters:
total (int | None) – Total number of iterations.
desc (str) – Description to display.
unit (str) – Unit name for iterations.
-
abstractmethod update(n=1, **kwargs)[source]
Update the progress bar.
- Parameters:
-