ANN : ConfigObj 3.0.0 - Simple config file parsing

Wilk wilkSPAM at OUTflibuste.net
Wed May 26 12:14:14 EDT 2004


michael at foord.net (Fuzzyman) writes:

> There have been a couple of config file 'systems' announced recently,
> that focus on building more powerful and complex configuration files.
> ConfigObj is a module to enable you to much more *simply* access
> config files.

What do you thing about yaml for config file ? it's very pythonic with
indentation :

import yaml
print yaml.load("""
rub1:
    - one
    - two
rub2:
    - three
    - four
""").next()

{'rub1': ['one', 'two'], 'rub2': ['three', 'four']}

it can also work on the other side :

print yaml.dump({'rub1': ['one', 'two'], 'rub2': ['three', 'four']})
---
rub1:
    - one
    - two
rub2:
    - three
    - four

-- 
Wilk - http://flibuste.net



More information about the Python-list mailing list