idmtools.utils.entities module

idmtools.utils.entities.get_dataclass_common_fields(src, dest, exclude_none: bool = True) → Dict

Extracts fields from a dataclass source object who are also defined on destination object. Useful for situations like nested configurations of data class options

Parameters
  • src – Source dataclass object

  • dest – Dest dataclass object

  • exclude_none – When true, values of None will be excluded

Returns:

idmtools.utils.entities.as_dict(src, exclude: List[str] = None, exclude_private_fields: bool = True)

Converts a dataclass to a dict while also obeys rules for exclusion :param src: :param exclude: List of fields to exclude :param exclude_private_fields: Should fields that star

Returns:

idmtools.utils.entities.validate_user_inputs_against_dataclass(field_type, field_value)
idmtools.utils.entities.get_default_tags() → Dict[str, str]

Get common default tags. Currently this is the version of idmtools Returns: