nvflare.fuel.hci.table module

class Table(headers: Optional[List[str]] = None)[source]

Bases: object

Table structure to write to. The headers are set in the init and the data is input to rows before write writes the table.

Parameters

headers – headers of the table

add_row(row: List[str])[source]
set_rows(rows)[source]
write(writer)[source]
repeat_to_length(string_to_expand, length)[source]

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

Parameters
  • string_to_expand – string to repeat

  • length – length of string to return

Returns: generated string of provided length