The introduction is almost identical: '[Pylsy/PrettyTable] is a simple Python library designed to make it quick and easy to represent tabular data in visually appealing ASCII tables'
Judging by this thread there are a surprising number of tools dedicated to this. Typically when I need tabular output I stick the data into a Pandas dataframe and its output format is usually good enough.
This is my choice for tables on Python - https://github.com/Robpol86/terminaltables. The appearance of tables is adequately configurable. The project is also actively maintained unlike some of the others.
This recalls some of the table formatting and exporting magic one can easily achieve with emacs org-mode. http://orgmode.org/guide/Tables.html
And there, if you like, you can include a full set of spreadsheet operations.
csvlook [0] is another great tool that does this for any CSV file. It's part of the very useful csvkit[1] suite of command line utilities for working with CSV files.
[+] [-] bru|10 years ago|reply
Note the variety of formats: 'ascii', but also html, latex & co.
[+] [-] IanCal|10 years ago|reply
[+] [-] viraptor|10 years ago|reply
[+] [-] roddux|10 years ago|reply
[+] [-] YesThatTom2|10 years ago|reply
[+] [-] joepvd|10 years ago|reply
Sorry for the plug, but this gawk program does something similar:
https://github.com/joepvd/table
Field splitting can be defined with all of (g)awks possibilities. Features different styles, among which unicode table borders.
[+] [-] networked|10 years ago|reply
[+] [-] kbd|10 years ago|reply
[+] [-] mih|10 years ago|reply
[+] [-] ORioN63|10 years ago|reply
[+] [-] jiri|10 years ago|reply
[+] [-] LesZedCB|10 years ago|reply
[+] [-] wizzardy|10 years ago|reply
[+] [-] theophrastus|10 years ago|reply
[+] [-] calpaterson|10 years ago|reply
[+] [-] skept|10 years ago|reply
[0] http://csvkit.readthedocs.org/en/latest/scripts/csvlook.html
[1] http://csvkit.readthedocs.org/en/latest/index.html
[+] [-] nahiluhmot|10 years ago|reply
[+] [-] smellf|10 years ago|reply
[+] [-] BetaCygni|10 years ago|reply
[+] [-] asgard1024|10 years ago|reply
[+] [-] ipozgaj|10 years ago|reply
[+] [-] mpdehaan2|10 years ago|reply