idmtools.utils.language module¶
-
idmtools.utils.language.
on_off
(test) → str¶ Print on or off depending on boolean state of test
- Parameters
test – Boolean/object to check state
- Returns
On or off
-
idmtools.utils.language.
pluralize
(word, plural_suffix='s')¶
-
idmtools.utils.language.
verbose_timedelta
(delta)¶
-
idmtools.utils.language.
get_qualified_class_name
(cls: Type) → str¶ Return the full class name for an object
- Parameters
cls – Class object to get name
Returns:
-
idmtools.utils.language.
get_qualified_class_name_from_obj
(obj: object) → str¶ Return the full class name from object
- Parameters
obj – Object
Example
` a = Platform('COMPS') class_name = get_qualified_class_name(a) print(class_name) 'idmtools_platform_comps.comps_platform.COMPSPlatform' `
- Returns
Full module path to class of object