madgui.core.config module

Config serialization utilities.

Functions

load(*config_files[, isolated])

Read config file and recursively merge it with a base config file.

Classes

ConfigSection(value[, parent, name])

Wrapper class for a config section (dict-like structure in YAML) that supports attribute access to config entries, and allows to subscribe for updates.

class madgui.core.config.ConfigSection(value, parent=None, name='')[source]

Bases: object

Wrapper class for a config section (dict-like structure in YAML) that supports attribute access to config entries, and allows to subscribe for updates.

The changed signal is is emitted whenever a property in this section changes (not in subsections).

Attribute access is overloaded to return subsections as ConfigSection and scalar entries as plain values.

Attributes

changed

Signal<>

Methods

get(name[, default])

changed

Signal<>

get(name, default=None)[source]
madgui.core.config.load(*config_files, isolated=False)[source]

Read config file and recursively merge it with a base config file.