lightweight human-readable config?

Heather Coppersmith me at privacy.net
Wed Oct 29 18:38:08 EST 2003


On Wed, 29 Oct 2003 22:22:13 GMT,
Maxim Khesin <max at cNvOiSsiPoAnMtech.com> wrote:

> I want to have a config file with my python proggie, satisfying the
> following requirements:
> 1) support key->(value, default)
> 2) simple and intuitive to read and edit
> 3) easyly readable into a python datastructure (a dictionary?)
> 4) not requiring any heavy libraries needed (I am distributing my
> proggie as a py2exe executable and do not want to bloat the size)

> can you guys suggest some format for this? thanks,

Will the standard library ConfigParser work?  Point your web
browser here:

    http://www.python.org/doc/current/lib/module-ConfigParser.html

Regards,
Heather

-- 
Heather Coppersmith
That's not right; that's not even wrong. -- Wolfgang Pauli




More information about the Python-list mailing list