Public Member Functions | |
| __init__ (self, config=None) | |
| __iter__ (self) | |
| __len__ (self) | |
| returns the length of an config element | |
| __str__ (self) | |
| Returns the string representation of the internal config dict. | |
| loadConfigFile (self, configPath) | |
| loads a given configuration file | |
| get (self, *args, default=None) | |
| Get a single value from the config or a value set in a new configYAML class instance. | |
Protected Attributes | |
| _config | |
| boswatch.configYaml.ConfigYAML.__init__ | ( | self, | |
config = None |
|||
| ) |
| boswatch.configYaml.ConfigYAML.__iter__ | ( | self | ) |
| boswatch.configYaml.ConfigYAML.__len__ | ( | self | ) |
returns the length of an config element
| boswatch.configYaml.ConfigYAML.__str__ | ( | self | ) |
Returns the string representation of the internal config dict.
| boswatch.configYaml.ConfigYAML.loadConfigFile | ( | self, | |
| configPath | |||
| ) |
loads a given configuration file
| configPath | Path to the config file |
| boswatch.configYaml.ConfigYAML.get | ( | self, | |
| * | args, | ||
default = None |
|||
| ) |
Get a single value from the config or a value set in a new configYAML class instance.
| *args | Config section (one ore more strings) |
| default | Default value if section not found (None) |
|
protected |