Re:Pylsy: Python library to represent tabular data in ASCII ...
by roddux on Monday August 31, 2015 @05:55AM
(#10146108)
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'
Re:Pylsy: Python library to represent tabular data in ASCII ...
by joepvd on Monday August 31, 2015 @10:55AM
(#10147068)
Aha! That must have been the first time I have tried to read Tcl for more than a minute :) Looks like one can prototype fast in this language. Thanks for writing / posting!
Re:Pylsy: Python library to represent tabular data in ASCII ...
by kbd on Monday August 31, 2015 @08:12AM
(#10146433)
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.
Re:Pylsy: Python library to represent tabular data in ASCII ...
by mih on Monday August 31, 2015 @06:57AM
(#10146232)
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.
Re:Pylsy: Python library to represent tabular data in ASCII ...
by theophrastus on Monday August 31, 2015 @10:54AM
(#10147063)
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.
Re:Pylsy: Python library to represent tabular data in ASCII ...
by skept on Monday August 31, 2015 @10:36AM
(#10146972)
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.
Note the variety of formats: 'ascii', but also html, latex & co.
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.
[0] http://csvkit.readthedocs.org/en/latest/scripts/csvlook.html
[1] http://csvkit.readthedocs.org/en/latest/index.html