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 within loaderconf.py module to add ad hoc loader.

The map is used by configtree.loader.Walker to determine supportable files and configtree.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