Text Lines¶
The text
layout reads and writes records as single lines of text using an interface
that looks like csv
.
-
class
txf.layouts.text.
LineReader
(iterable, **config)¶ An
iterator
that returns strings with the line separator removed.
-
class
txf.layouts.text.
DictReader
(iterable[, fieldnames=None[, **config]])¶ An
iterator
that returns single lines.fieldnames
will be truncated to a single value. if it is not provided, thedefault_fieldnames
entry fromconfig
will be used.