Internals

class txf.Transform(name[, inputs=()[, outputs=()[, source=None]]])

The base class for all transforms. It provides services for creating and validating the common attributes. It is an iterable, so it can be used in for loops.

source: Transform or None

The input pipeline.

inputs: tuple(str)

The input field names, if any.

input: str

If there is only one input, input is set to it.

outputs: tuple(str)

The output field names, if any.

output: str

If there is only one output, output is set to it.

fieldnames: tuple(str)

The full list of fields a record will have after being processed by this transform. It is carefully maintained to preserve physical layout order, e.g., a Split transformation will replace the input in the source fieldnames with the outputs.

schema: dict(str -> metadata)

A mapping from field names to metadata.

updateSchemaType(field[, ftype = None])

Sets the Python type object of the field. Used by transforms like Text that know the data type of a field at construction time.

exception txf.TransformException(message=None)

A module-specific exception derived from Exception