configtree.source
¶
The module provides loaders from YAML and JSON files, which load data
into collections.OrderedDict
objects.
-
configtree.source.
map
¶ Dictionary that stores map of loaders. It is filled using entry points named
configtree.source
. But can be also modified withinloaderconf.py
module to add ad hoc loader.The map is used by
configtree.loader.Walker
to determine supportable files andconfigtree.loader.Loader
to load data from the files.
-
configtree.source.
from_json
(data)¶ Loads data from JSON file into
collections.OrderedDict
-
configtree.source.
from_yaml
(data)¶ Loads data from YAML file into
collections.OrderedDict