uconfig

simple configuration file parser


Keywords
configuration parser
License
BSD-3-Clause
Install
pip install uconfig==0.1.4

Documentation

uconfig

uconfig is a simple parser for unix style configurations written in pure python.

Sorry for the lack of documentation.

Examples

example.conf

foo bar;
foo {
   foobar Hello World;
}

$ python

>>> import uconfig
>>> cfg = uconfig.ExtendedConfig()
>>> cfg.load("example.conf")
>>> cfg.get_value("foo")
'bar'
>>> cfg["foo"].get_value("foobar")
'Hello World'