ANN : ConfigObj 3.0.0 - Simple config file parsing
Thomas Heller
theller at python.net
Fri May 28 04:52:04 EDT 2004
David Fraser <davidf at sjsoft.com> writes:
> Just as an aside, we've just written a config system for our app that
> I think is quite interesting and am planning to release when I get
> time.
>
> Some of the goals are the same as ConfigObject: easy for either a
> human or a computer to read / edit the files.
> Some are different. Particularly it handles hierarchical config tries
> in a nice pythonic syntax. For example you can specify things like
> this:
>
> app1.title = "Title of app"
> app1.font.face = "Arial"
>
> Or like this:
>
> app1:
> title = "Title of app"
> font.face = "Arial"
[...]
> The module will automatically remember where an element is defined and
> save changed values to the same location. It will also save new values
> to an appropriate location (e.g. app2.newvalue would appear in the
> app2 section).
>
> I think the hierarchical aspect of configuration is important ; it
> lets you do things like Mozilla's generic prefs interface etc. It also
> gives plugins / customizations to an app an easy way to add their own
> preferences.
>
> If anyone is interested in this module, post a reply...
Looks interesting, if you ask me.
Thomas
More information about the Python-list
mailing list