ConfigObj 4.3.1 & validate 0.2.2

1 view
Skip to first unread message

fuzz...@voidspace.org.uk

unread,
May 1, 2006, 9:25:08 AM5/1/06
to pytho...@googlegroups.com

ConfigObj 4.3.1 & validate 0.2.2

emoticon:noise ConfigObj 4.3.1 and validate 0.2.2 are now available.

These are both minor bugfix/feature enhancement releases.

What is New in ConfigObj ?

Changes since ConfigObj 4.3.0 :

  • Added validate.py back into configobj.zip. (Thanks to Stewart Midwinter)
  • Updated to validate.py 0.2.2.
  • Preserve tuples when calling the dict method. (Thanks to Gustavo Niemeyer.)
  • Changed __repr__ to return a string that contains ConfigObj({ ... }).
  • Change so that an options dictionary isn't modified by passing it to ConfigObj. (Thanks to Artarious.)
  • Added ability to handle negative integers in unrepr. (Thanks to Kevin Dangoor.)

What is New in validate ?

Changes since validate 0.2.1 :

  • Addressed bug where a string would pass the is_list test. (Thanks to Konrad Wojas.)

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 is validate ?

validate.py is a module for validating values against a specification. It can be used with ConfigObj, or as a standalone module.

It is extensible, and as well as doing type conversion from strings, you can easily implement your own functions for transforming values in any way you please.

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

Reply all
Reply to author
Forward
0 new messages