Makes pretty table in console.
-
python 3.*
. -
Colorama needs to color header.
If you run example.py
as is, you should see something like (depends on terminal's color scheme):
Example tolerance to long lines (example2.py
):
Example using with pygments (example3.py
):
Well, at first, existing libs does not tolerant to big data long lines. And it's enough for me.
But, as I've started to write my own lib, I try to add something more.
So, you can define formatting rules for each cell based on column, row or moon size.