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.

__init__(name, tasks, refresh_per_second=4)[source]#

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.

finish_task(name, success, message)[source]#

Mark a task as finished.

Return type:

None

start_task(name, status)[source]#

Start a task and assign a status.

Return type:

None

update_task(name, status)[source]#

Update the status of a task.

Return type:

None