Tony Landis
Personal website of Tony Landis

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.


Tags: , ,