ConfigObj 4.3.0

3 views
Skip to first unread message

fuzz...@voidspace.org.uk

unread,
Apr 7, 2006, 6:12:27 PM4/7/06
to configob...@lists.sourceforge.net, pytho...@googlegroups.com

ConfigObj 4.3.0

emoticon:globepage ConfigObj 4.3.0 is now released.

This has several bugfixes, as well as several major feature enhancements.

You can download it from :

ConfigObj-4.3.0.zip 244Kb

What is ConfigObj ?

ConfigObj is a simple but powerful config file reader and writer: an ini file round tripper. Its main feature is that it is very easy to use, with a straightforward programmer's interface and a simple syntax for config files. It has lots of other features though :

  • Nested sections (subsections), to any level

  • List values

  • Multiple line values

  • String interpolation (substitution)

  • Integrated with a powerful validation system

    • including automatic type checking/conversion
    • repeated sections
    • and allowing default values
  • All comments in the file are preserved

  • The order of keys/sections is preserved

  • No external dependencies

  • Full Unicode support

  • A powerful unrepr mode for storing basic datatypes

What's New ?

Moved the tests and the CHANGELOG (etc) into a separate file. This has reduced the size of configobj.py by about 40%.

Added the unrepr mode to reading and writing config files. Thanks to Kevin Dangoor for this suggestion.

Empty values are now valid syntax. They are read as an empty string ''. (key =, or key = # comment.)

validate now honours the order of the configspec.

Added the copy mode to validate. Thanks to Louis Cordier for this suggestion.

Fixed bug where files written on windows could be given '\r\r\n' line terminators.

Fixed bug where last occurring comment line could be interpreted as the final comment if the last line isn't terminated.

Fixed bug where nested list values would be flattened when write is called. Now sub-lists have a string representation written instead.

Deprecated encode and decode methods instead.

You can now pass in a ConfigObj instance as a configspec (remember to read the configspec file using list_values=False).

Posted by Fuzzyman on 2006-04-07 22:36:19.
Categories: Projects, Python
Visit the Voidspace Techie Blog to read this entry and more.

Reply all
Reply to author
Forward
0 new messages