Wednesday, May 26, 2004

This is it... the 'official' release of ConfigObj 3.0.0
It's a big deal for me, as I've spent a lot of time on creating it and the docs for it....

It makes creating and editing config files in Python *really* easy... because it behaves like a python 'dictionary' and can save/restore lists of values it's great for readable/editable data persistence too.......... I use it in all my projects (of course).

Anyway - it's now available at :
CongfigObj Home Page

I've done an announcement on the Python Announce Newsgroup... it may not get through though, because it's moderated and I'm not sure if he accepts posts from google....
posted by Mike Foord on Wednesday, May 26, 2004

(0) comments

Thursday, May 20, 2004

Wow... it works...........

First Techie post since the start of the year.
ConfigObj is due for a major new release any day - version 3 is imminent, just doing the documentation and ironing out a few issues.

ConfigObj is a python module to make it easy to read and write configuration files. ConfigObj behaves like a standard Python dictionary with case-insensitive keys.
To read an existing config file :

config = ConfigObj(filename)
value1 = config['keyword1']
value2 = config['keyword2']

Values can be changed like you would a normal dictionary :
config['keyword1'] = value1
config['keyword2'] = value2

and finally to write a new config file out :

*lots* of added extras of course - but that's the essence of it.
COnfigObj 3 adds the ability to read config files with sections in - like windows INI files. Also vastly simplifies various aspects and has a hugely improved error handling and more.................

All imminent... watch this space.......

posted by Mike Foord on Thursday, May 20, 2004

(0) comments