Tony Landis home

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.

blog comments powered by Disqus