skip to navigation
skip to content

Not Logged In

ConfigObj 4.3.2

Config file reading, writing and validation.

Latest Version: 4.5.3

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

  • Full Unicode support

  • String interpolation (substitution)

  • Integrated with a powerful validation system

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

  • The order of keys/sections is preserved

  • Full Unicode support

  • Powerful unrepr mode for storing/retrieving Python data-types

Release 4.3.2 has the following changes from 4.3.1 :

Changed error handling, if parsing finds a single error then that error will be re-raised. That error will still have an errors and a config attribute. That means the error will be more comprehensible.

Fixed bug where '\n' terminated files could be truncated.

Bugfix in unrepr mode, it couldn't handle '#' in values. (Thanks to Philippe Normand for the report.)

As a consequence of this fix, ConfigObj doesn't now keep inline comments in unrepr mode. This is because the parser in the compiler package doesn't keep comments.

Error messages are now more useful. They tell you the number of parsing errors and the line number of the first error. (In the case of multiple errors.)

Line numbers in exceptions now start at 1, not 0.

Errors in unrepr mode are now handled the same way as in the normal mode. The errors stored will be an UnreprError.

File Type Py Version Size # downloads
configobj-4.3.2-py2.3.egg (md5) Python Egg 2.3 234KB 497
configobj-4.3.2-py2.4.egg (md5) Python Egg 2.4 60KB 1879