PyerConf is a Pythonic hierarchical configuration parser.
Sample config:
# a value is set with: key : value
# values are typed. allowed types are:
# - string (simple or double quotes)
# - boolean (True or False. is case sensitive)
# - integer
strval : 'this is a string'
boolval: True
intval : 142
# you can define hierarchies with dictionaries
# ! no comma to se
orgchart : {
boss : 'Mr Goldmine'
head_office : {
VP : 'Miz dho'
CTO : 'John Bugs'
}
}
Loaded from python:
>>> import pyerconf
>>> cfg = pyerconf.Config('./sample.cfg')
>>> print cfg.strval
this is a string
>>> print cfg.orgchart.boss
Mr Goldmine
>>> print cfg.orgchart.head_office
{'VP': 'Miz dho', 'CTO': 'John Bugs'}
>>> print cfg.foobar
AttributeError
Product's homepage
Requirements:
· Python
· SimpleParse