[Python-Announce] cfgparse v01_00 released

From: Dan Gass (dan.gass_at_gmail.com)
Date: 01/31/05


Date: Sun, 30 Jan 2005 20:04:58 -0600
To: python-announce@python.org, python-list@python.org

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



Relevant Pages

  • Re: [Python-Announce] cfgparse v01_00 released
    ... > I'm pleased to announce the initial release of cfgparse ... > parsing configuration files than the standard library ConfigParser ... > popular optparse standard library module. ... ini-style and the Python-style formats: ...
    (comp.lang.python)
  • [Python-Announce] cfgparse v01_01 released
    ... I'm pleased to announce the V01_01 release of cfgparse. ... Exception argument added to the Configuration parser initializer so ... Round trip - read, modify, write configuration files with comment retention. ... Supports heirarchically organized option settings. ...
    (comp.lang.python)
  • Re: Great SWT Program
    ... which is where the configuration files ... And this doesn't happen in GUI tools? ... the famous two modes (insert and command) ... Well Eclipse certainly isn't. ...
    (comp.lang.java.programmer)
  • Re: How to filter spam based on message content?
    ... There could be a command to reread the ... > configuration files without doing a full shutdown and restart. ...
    (comp.os.vms)
  • Re: Gnome KDE Xorg.conf
    ... you'd installed enough of KDE. ... The switchdesk command can be used to set which desktop is to be used. ... You can use the telinit command to change between run levels without ... If you've messed up your own configuration files, ...
    (Fedora)