betty.progress module
Task progress management.
-
class betty.progress.Progress
Bases: ABC
Track the progress of a number of tasks.
This can be used as an asynchronous context manager, adding a task when entering, and marking it done when exiting.
-
abstractmethod async add(add: int = 1, /) → None
Add a number of tasks to the total.
-
abstractmethod async done(done: int = 1, /) → None
Mark a number of tasks done.