utils package

Submodules

utils.util module

The util module contains all the utility functions

exception utils.util.InvalidConfigError[source]

Bases: Exception

This exception is raised when the config file is invalid

utils.util.clear_default_values(dict_model: Dict[str, Any]) Dict[str, Any][source]

Clears the default values from the model

Parameters:

dict_model – The model

Returns:

The model without default values

utils.util.get_field_name(data: dict[str, Any], field_names: list[str]) str | None[source]

Gets the field name from the data

Parameters:
  • data – The data to verify the field name.

  • field_names – The field names to check for

Returns:

The field name if found else None

Module contents