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.writerthat sets thelineterminatorfield to the empty string.
- class txf.layouts.csv.DictWriter(outfile, fieldnames, **config)¶
A subclass of
csv.DictWriterthat sets thelineterminatorfield to newline.Writes the footer for CSV files, which is a NOP.