Welcome to Python-flavored Magnum! Please note that, while already being rather stable, this functionality is still considered experimental and some APIs might get changed without preserving full backwards compatibility.

corrade.utility.ConfigurationGroup class

Group of values in a configuration file

Methods

def add_group(self, name: str) -> ConfigurationGroup
Add a group
def group(self, name: str) -> ConfigurationGroup
Group

Special methods

def __getitem__(self, key: str) -> str
Value
def __setitem__(self, key: str, value: str) -> None
Set a value
def __setitem__(self, key: str, value: float) -> None
Set a value
def __setitem__(self, key: str, value: int) -> None
Set a value
def __setitem__(self, key: str, value: bool) -> None
Set a value

Properties

has_groups: bool get
Whether this group has any subgroups
has_values: bool get
Whether this group has any values

Method documentation

def corrade.utility.ConfigurationGroup.group(self, name: str) -> ConfigurationGroup

Group

Exceptions
KeyError If group name doesn’t exist