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
]
- class gloe.utils.forward[source]¶
Bases:
Generic
[_In
],Transformer
[_In
,_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]): ...