yawning_titan.config.core.ConfigBase#
- class yawning_titan.config.core.ConfigBase[source]#
Bases:
ABC
Used to provide helper methods to represent a ConfigGroup object.
Methods
Get the attributes of the class that are either :class: ConfigGroup or
ConfigItem
.Get all attributes of the class that are not :class: ConfigGroup or :class: ConfigItem.
Represent the class as a string.
Attributes
~yawning_titan.config.core.ConfigGroup children of the group.
~yawning_titan.config.core.ConfigItem children of the group.
- get_config_elements(types=None)[source]#
Get the attributes of the class that are either :class: ConfigGroup or
ConfigItem
.- Parameters:
_type – An optional type for a specific type of config element.
- Returns:
A dictionary of names to config elements.
- get_non_config_elements()[source]#
Get all attributes of the class that are not :class: ConfigGroup or :class: ConfigItem.
- Returns:
A dictionary of names to attributes.
- property config_items#
~yawning_titan.config.core.ConfigItem children of the group.
- Type:
Property to represent the
- Type:
class
- property config_groups#
~yawning_titan.config.core.ConfigGroup children of the group.
- Type:
Property to represent the
- Type:
class