_Configuration.schema

_Configuration.schema()

Iterate over the whole configuration schema (in the order of the defaults).

Yields:

Tuple[str, str, ConfigMetadata, Optional[str]] – section, option, the metadata of the key (type, allowed values, documentation, deprecation target) and its default value (None for a deprecated key).

Example

import pyagrum as gum

section, option, meta, default = next(gum.config.schema())
(section, option, meta.kind, default)
# ('core', 'maxNumberOfThreads', 'int', '-1')
meta.doc
# 'default maximum number of threads used by aGrUM (-1 = adapted to the machine)'

Class

_Configuration