akkudoktoreos.core.coreabc.ConfigMixin

class akkudoktoreos.core.coreabc.ConfigMixin

Bases: object

Mixin 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.

config

Property to access the global EOS configuration.

Type:

ConfigEOS

Example

```python class MyEOSClass(ConfigMixin):

def my_method(self):

if self.config.myconfigval:

```

__init__()

Methods

__init__()

Attributes

config

Convenience method/ attribute to retrieve the EOS configuration data.

property config: Any

Convenience method/ attribute to retrieve the EOS configuration data.

Returns:

The configuration.

Return type:

ConfigEOS