freeports_analysis.formats.utils_commons

Functions

default_if_not_implemented(default_func)

Replace the decorated function with a default given as argument of the decorator if the decorated function raise a NotImplementedError or return None

normalize_string(string)

normalize_word(word)

overwrite_if_implemented(primary_func)

freeports_analysis.formats.utils_commons.default_if_not_implemented(default_func)

Replace the decorated function with a default given as argument of the decorator if the decorated function raise a NotImplementedError or return None

Parameters:

default_func (Callable[Any,Any]) – default function

Returns:

the default function if the deorated function is overwritten, if not the decorated function

Return type:

Callable[Any,Any]