Disconnected Mutterings of a Random Geek

Wed, 07 Feb 2007

Python Config system

I haven't blogged in a while, due to being buried in work, not really having done anything I think of as cool, and enguaged in some evil plotting. But now I have a problem. I want a really easy way of using config files in python. Quick example:

name = "john doe"
age = 12
sex =  "male"
should give a dict like: config = {("name", "john doe"), ("age", 12), ("sex", "male")}

I haven't found such a bit of code myself, and think it might be a pain in the ass to write it myself, so if you know of such a thing....

posted at: 10:38 | path: /computing | permanent link to this entry

Made with PyBlosxom