allya.nestedconfigparser

A simple extension to configparser that allows nested fallback configurations


Keywords
configparser, Nested, Recursive
License
WTFPL
Install
pip install allya.nestedconfigparser==0.1.0

Documentation

nestedconfigparser

Running tests

python setup.py test

Building binary distribution

python setup.py bdist_wheel

Running

nestedconfigparser can be used just as if it were configparser. Below you can see the only exposed difference in behaviour (with the default value). Everything else is fully compatible with configparser; it will just load additional sections to the chain map based on the section_splitter when getting keys.

import nestedconfigparser

settings = nestedconfigparser.NestedConfigParser(section_splitter='.')