eon.config

Module Contents

Classes

Functions

canonical_listed_value

Return the listed spelling.

Data

API

eon.config.canonical_listed_value(raw, values)[source]

Return the listed spelling.

An exact entry wins. Otherwise the first entry with the same casefold matches. None when nothing matches.

class eon.config.ConfigSection(name)[source]

Initialization

class eon.config.ConfigKey(name, kind, default)[source]

Initialization

class eon.config.ConfigClass[source]

Initialization

init(config_file='')[source]
init_from_cli(args)[source]

Load config from the first positional path, or config.ini in CWD.

Does not rewrite sys.argv. If path_root is still ‘.’, it becomes the directory that contains the given config file.

eon.config.config

‘ConfigClass(…)’