Skip to content

Mask

flowtask.interfaces.mask

MaskSupport

MaskSupport(*args, **kwargs)

Bases: ABC

MaskSupport.

Processing Masks Support.

mask_replacement

mask_replacement(obj)

mask_replacement.

Replacing occurrences of Masks into an String. Args: obj (Any): Any kind of object.

Returns:

Name Type Description
Any

Object with replaced masks.

mask_replacement_recursively

mask_replacement_recursively(obj)

This function replaces all occurrences of "{key}" in the obj structure with the corresponding value from the replacements dictionary, recursively.

Parameters:

Name Type Description Default
obj Any

an object to process.

required

Returns:

Type Description

The modified obj structure with curly brace replacements.