config.spec

Reading a configuration: where an entry sits in the file, its keys, and registered templates.

Module Attributes

Location

its keys and list indices, from the top.

Functions

check_keys(spec, path, allowed[, required])

spec as a mapping whose keys are all allowed (any, for None) and include the required ones.

template(kind, spec, path)

A registered template, called with the arguments the file gives it: spec is its name, or a mapping of template (the name) and the template's keyword arguments.

where(path)

A path as it reads in the file, such as controller.elements.reach.on.