RenameAttributeQuery

Rename attributes keys using query string

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

Module: core

Methods and properties

Main methods and properties


__init__

Arguments:

  • query (str): Query for renaming.

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


execute

Rename keys using query

Arguments:

  • input_data (Dict[str, Any]): Current data.

Raises:

  • InvalidQuery: Provided query is invalid.

  • InputDataKeyError: Key for renaming doesn't exist.

Returns:

  • Dict[str, Any]: Updated data.

Last updated