fill_tasks_table#

fill_tasks_table(table, tasks, columns, column_mappings, max_rows=None, colour_function=None)[source]#

Fill a Rich table with tasks as rows.

Tasks are added as rows to the table, from top to bottom.

Parameters:
  • table (Table) – Rich table we render into

  • tasks (List[Task]) – List of tasks to render

  • columns (List[str]) – List of human-readable column nams

  • column_mappings (dict) – Task attribute to human-readable column mappings

  • colour_function (Optional[RowColourFunction]) – A function to decide row colour based on task

  • max_rows (Optional[int]) – How many rows we can fit on the console screen before overflow