Convert csv files to nicely formatted ascii tables.
I also recommend checking out the related Data Converters project.
Just grab the raw python script:
https://raw.github.com/rgrp/csv2ascii/master/csv2ascii.py
And start using it:
# make it runnable
chmod a+x csv2ascii.py
# read the instructions
csv2ascii.py -h
-
allow output_width of 0 meaning use width necessary to fit all rows on one line
-
rather than truncate cell contents wrap it onto two lines (and/or allow spillover if adjacent cell is empty)
- wontfix: can let terminal do this: just set width very large ...
-
(?) stream output back rather than returning all at once
-
Add support for limiting number of columns displayed. DONE 2007-08-02
- TODO: add unittest
Copyright (c) 2006 Rufus Pollock
This is Free/Open Source Software available under the MIT License http://www.opensource.org/licenses/mit-license.php