ANN: ConfigObj 4.6.0 and Validate 1.0.0 released

Discussion in 'Python' started by Fuzzyman, Apr 17, 2009.

  1. Fuzzyman

    Fuzzyman Guest

    Finally a fresh release ConfigObj and Validate.

    * ConfigObj Home page: http://www.voidspace.org.uk/python/configobj.html
    * Validate Home page: http://www.voidspace.org.uk/python/validate.html

    **ConfigObj** is a simple to use but powerful Python library for the
    reading and writing of configuration (ini) files. Through **Validate**
    it integrates a config file validation and type conversion system.

    Features of ConfigObj include:

    * 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
    * Powerful ``unrepr`` mode for storing/retrieving Python data-types

    Release 4.6.0 fixes bugs and adds new features, particularly making
    configspec handling more flexible.

    Full details on the changes can be found at:
    http://www.voidspace.org.uk/python/weblog/arch_d7_2009_04_11.shtml#e1078

    The changelog for ConfigObj 4.6.0 is:

    * Pickling of ConfigObj instances now supported (thanks to Christian
    Heimes)
    * Hashes in confgspecs are now allowed (see note below)
    * Replaced use of hasattr (which can swallow exceptions) with getattr
    * ``__many__`` in configspecs can refer to scalars (ordinary values)
    as well as sections
    * You can use ``___many___`` (three underscores!) where you want to
    use ``__many__`` as well
    * You can now have normal sections inside configspec sections that use
    ``__many__``
    * You can now create an empty ConfigObj with a configspec,
    programmatically set values and then validate
    * A section that was supplied as a value (or vice-versa) in the actual
    config file would cause an exception during validation (the config
    file is still broken of course, but it is now handled gracefully)
    * Added ``as_list`` method
    * Removed the deprecated ``istrue``, ``encode`` and ``decode`` methods
    * Running test_configobj.py now also runs the doctests in the
    configobj module
    * Through the use of validate 1.0.0 ConfigObj can now validate multi-
    line values

    As the public API for Validate is stable, and there are no outstanding
    issues or feature requests, I've bumped the version number to 1.0.0.
    The full change log is:

    * BUGFIX: can now handle multiline strings
    * Addition of 'force_list' validation option
    Fuzzyman, Apr 17, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Fuzzyman
    Replies:
    0
    Views:
    262
    Fuzzyman
    Apr 29, 2006
  2. Fuzzyman

    [ANN] ConfigObj 4.3.2 Released

    Fuzzyman, Jun 4, 2006, in forum: Python
    Replies:
    0
    Views:
    230
    Fuzzyman
    Jun 4, 2006
  3. Fuzzyman
    Replies:
    0
    Views:
    237
    Fuzzyman
    Feb 4, 2007
  4. Fuzzyman
    Replies:
    0
    Views:
    227
    Fuzzyman
    Feb 7, 2008
  5. Fuzzyman
    Replies:
    0
    Views:
    251
    Fuzzyman
    Feb 27, 2008
Loading...

Share This Page