bibliotekar.console.report.TaskProgress#
- class bibliotekar.console.report.TaskProgress(name, tasks, refresh_per_second=4)[source]#
Progress display for a number of tasks.
Shows a progress bar and a list of tasks. The progress bar advances by one for each completed task. The task list shows a spinner for running tasks and a message for completed tasks.
Methods
__init__
(name, tasks[, refresh_per_second])finish_task
(name, success, message)Mark a task as finished.
start_task
(name, status)Start a task and assign a status.
update_task
(name, status)Update the status of a task.