Tony Landis
msgbartop
Personal website of Tony Landis
msgbarbottom

05 Dec 08 Python CSV to Fixed Sized Text Tables

Here is a quick and simple Python class I hacked up to take comma separated values and reformat them to a fixed column text table. Supports multi-line rows, column width limits, and creates a header row automatically using the data from the first row of the CSV input.

(more…)

Tags: , ,