NestToKey

Nest input data to specified key

Subclass of Action. Type: Action[Any, Dict[str, Any]].

Module: core

Methods and properties

Main methods and properties


__init__

Arguments:

  • key (str): Key to unpack (associated value should be of type Dict[str, Any]).

  • name (Optional[str], optional): Name for identification. If equals to None, class name will be used. Defaults to None.


execute

Nest input data to specified key

Arguments:

  • input_data (Any): Current data.

Returns:

  • Dict[str, Any]: Updated data.



Last updated