akkudoktoreos.core.coreabc.ConfigMixin
- class akkudoktoreos.core.coreabc.ConfigMixin
Bases:
objectMixin class for managing EOS configuration data.
This class serves as a foundational component for EOS-related classes requiring access to the global EOS configuration. It provides a config property that dynamically retrieves the configuration instance, ensuring up-to-date access to configuration settings.
- Usage:
Subclass this base class to gain access to the config attribute, which retrieves the global configuration instance lazily to avoid import-time circular dependencies.
Example
```python class MyEOSClass(ConfigMixin):
- def my_method(self):
if self.config.myconfigval:
- __init__()
Methods
__init__()Attributes
Convenience method/ attribute to retrieve the EOS configuration data.