nvflare.fuel.hci.table module

class Table(headers: List[str] | None = None, meta_rows=None)[source]

Bases: object

A structure with header and rows of records.


The header will be converted to capital letters.


headers – headers of the table

add_row(row: List[str], meta: dict | None = None)[source]

Adds a record.

set_rows(rows, meta_rows=None)[source]

Sets the rows of records.

repeat_to_length(string_to_expand, length)[source]

Repeats string_to_expand to fill up a string of the provided length.

  • string_to_expand – string to repeat

  • length – length of string to return

Returns: generated string of provided length