Comma Separated Values

txf is designed to imitate the builtin csv module as closely as possible. The layout objects for csv are therefore almost identical to those of the builtin module.

class txf.layouts.csv.LineReader

This is simply a wrapper for csv.reader.

class txf.layouts.csv.DictReader

This is simply an alias for csv.DictReader.

class txf.layouts.csv.LineWriter(outfile, fieldnames, **config)

A subclass of csv.writer that sets the lineterminator field to the empty string.

class txf.layouts.csv.DictWriter(outfile, fieldnames, **config)

A subclass of csv.DictWriter that sets the lineterminator field to newline.

writefooter()

Writes the footer for CSV files, which is a NOP.