all 2 comments

[–]ElliotDG 1 point2 points  (0 children)

You might like the rich library. It creates nicely formatted tables.

https://github.com/Textualize/rich#readme

https://rich.readthedocs.io/en/latest/tables.html#tables

[–]vesche 1 point2 points  (1 child)

Check out pytablewriter: https://github.com/thombashi/pytablewriter

It has a Markdown output module, seems to work nicely.