betty.config.collections.mapping module¶
Define and provide key-value mappings of betty.config.Configuration instances.
- class betty.config.collections.mapping.ConfigurationMapping[source]¶
Bases:
ConfigurationCollection[_ConfigurationKeyT,_ConfigurationT],Generic[_ConfigurationKeyT,_ConfigurationT]A key-value mapping where values are
betty.config.Configuration.- append(*configurations: _ConfigurationT) None[source]¶
Append the given values to the end of the sequence.
- dump() bool | int | float | str | None | MutableSequence[bool | int | float | str | None | MutableSequence[Dump] | MutableMapping[str, Dump]] | MutableMapping[str, bool | int | float | str | None | MutableSequence[Dump] | MutableMapping[str, Dump]] | type[Void][source]¶
Dump this instance to a portable format.
- insert(index: int, *configurations: _ConfigurationT) None[source]¶
Insert the given values at the given index.
- load(dump: bool | int | float | str | None | MutableSequence[Dump] | MutableMapping[str, Dump]) None[source]¶
Load dumped configuration.
- Raises:
betty.assertion.error.AssertionFailed – Raised if the dump contains invalid configuration.
- prepend(*configurations: _ConfigurationT) None[source]¶
Prepend the given values to the beginning of the sequence.