[Python-Announce] cfgparse v01_00 released

Dan Gass dan.gass at gmail.com
Sun Jan 30 21:04:58 EST 2005


I'm pleased to announce the initial release of cfgparse (V01_00)
 
Background
-------------------------------------------------------------
cfgparse is a more convenient, flexible, and powerful module for
parsing configuration files than the standard library ConfigParser
module. cfgparse uses a more declarative style modelled after the
popular optparse standard library module.

cfgparse can optionally cooperate with the optparse module to provide
coordination between command line and configuration file options. In
addition, the cooperation can be used to allow the user to control
features of the parser from the command line.

URLs
-------------------------------------------------------------
Docs/home page: http://cfgparse.sourceforge.net/
Download: http://sourceforge.net/projects/cfgparse/

Feature Summary
-------------------------------------------------------------
+ Simple ini style configuration syntax
+ Type checking with error handling and help messages
+ Help summary modelled after that in optparse
+ Round trip - read, modify, write configuration files with comment retention
+ Cooperates with optparse for configuration file options that should be 
    overridden by command line options
+ Supports heirarchically organized option settings
    * User may store multiple option settings in a arbitrarily deep
keyed dictionary.
    * Application uses a key list to walk into the dictionary to
obtain a setting.
    * User controls key list with setting in configuration file.
    * Supports adding keys to the list through a command line option or from 
        environment variables.
+ Supports allowing user control of configuration files used.
    * Environment variables may be used to allow user to specify a default 
        configuration file.
    * Command line options to specify configuration file supported.
    * Configuration files may include other configuration files where where 
        sections are read in parallel.
    * Configuration files may be nested heirarchically by including
configuration
        files from within a section or subsection.
+ Configuration files may alternatively be written in Python.
    * full power and flexibility of Python available for creation of
option settings
    * allows options settings to be real Python objects
    * this feature is NOT enabled by default
+ May be extended to support syntax such as XML.

Enjoy,
Dan Gass



More information about the Python-list mailing list