Text: Import lines as records from a text file

class txf.Text(iterable, output[, source=None])

The Text transform pulls lines from an iterable in text format. Text is a subclass of Read.

iterable: iterable

The input. Each row will be generated from the result of next(iterable).

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))