from .formatter import TableFormatter class TextTableFormatter(TableFormatter): def _printer(self, data): print(*("{: >10}".format(value) for value in data)) def headings(self, headers): self._printer(headers) print(*("{:->10}".format("") for _ in headers)) def row(self, rowdata): self._printer(rowdata)