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.pymodule to add ad hoc loader.The map is used by
configtree.loader.Walkerto determine supportable files andconfigtree.loader.Loaderto 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