| 6 | |
| 7 | |
| 8 | class BaseRichTable(RichTable): |
| 9 | def __init__(self) -> None: |
| 10 | super().__init__( |
| 11 | box=box.SIMPLE, |
| 12 | show_header=False, |
| 13 | pad_edge=False, |
| 14 | show_edge=False, |
| 15 | ) |
| 16 | |
| 17 | def stringify(self) -> str: |
| 18 | string_io = StringIO() |
| 19 | buf = Console(file=string_io, highlight=False) |
| 20 | buf.print(self) |
| 21 | |
| 22 | _ = string_io.seek(0) |
| 23 | output = string_io.read() |
| 24 | |
| 25 | return output |