Text: Import lines as records from a text file¶
- class txf.Text(iterable, output[, source=None])¶
The
Texttransform pulls lines from aniterableintextformat.Textis a subclass ofRead.- output: str¶
The name of the output field containing the lines.
- source: Transform or None¶
An optional input pipeline. New rows will be merged with the output of this pipeline.
Usage¶
Text(sys.stdin, 'Line')
Text(['Line 1', 'Line 2',], Sequence(None, 'Row #', 1))