osl_dynamics.utils.tables.TextTable#
- class osl_dynamics.utils.tables.TextTable(headers, right_align=())#
Bases:
TableClass for creating plain text tables.
- Parameters:
- headerslist of str
The table headers.
- right_alignlist of int, optional
Indices of the columns to align to the right. The other columns are aligned to the left.
- right_align = ()#
- output()#
Create the text for the table.
- Returns:
- textstr
The table, with one line for the headers and one for each row.
- headers#
- rows = []#