gloe.utils

gloe.utils.attach(inner_transformer)[source]
Parameters:

inner_transformer (Transformer[_In, _Out])

Return type:

Transformer[_In, Tuple[_Out, _In]]

class gloe.utils.debug[source]

Bases: Generic[_In], Transformer[_In, _In]

transform(data)[source]

Drops the user into the debugger when the pipeline execution reaches this transformer.

In the debug console, the user will see the output of the previous transformer.

Parameters:

data (_In)

Return type:

_In

class gloe.utils.forward[source]

Bases: Generic[_In], Transformer[_In, _In]

transform(data)[source]

Main method to be implemented and responsible to perform the transformer logic

Parameters:

data (_In)

Return type:

_In

gloe.utils.forward_incoming(inner_transformer)[source]
Parameters:

inner_transformer (Transformer[_In, _Out])

Return type:

Transformer[_In, Tuple[_Out, _In]]

gloe.utils.debug[source]

Type:    Transformer[T, T]

A Transformer is the generic block with the responsibility to take an input of type T and transform it to an output of type S.

See also

Read more about this feature in the page Creating a Transformer.

Example

Typical usage example:

class Stringifier(Transformer[dict, str]):
    ...