cfgparse 1.3
Configuration Parser Module
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.
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| cfgparse-1.3.zip (md5) | Source | 2007-09-25 05:32:02 | 96KB | 511 | |
| cfgparse-1.3-py2.5.egg (md5) | Python Egg | 2.5 | 2007-09-25 05:30:29 | 36KB | 477 |
- Author: Daniel M. Gass <dan gass at gmail com>
- Home Page: https://sourceforge.net/projects/cfgparse/
- Keywords: configuration file parser
- License: PSF like
- Platform: independent
- Categories
- Package Index Owner: dmgass
- DOAP record: cfgparse-1.3.xml
Log in to rate this package.
Package rating (1 vote):
4.0
- 4 points: 1 vote
Ratings range from 0 to 5 (best).
Package Comments:
- pfeldman (2009-09-26, 4 points):
This is generally an excellent package, but there are two issues that need to be
resolved:
(1) The parse() method does not seem to handle keys properly. My workaround for
this has been to create a temporary file, copy the contents of the appropriate sections (without the headers) into that file, run cfgparse on the temporary file, and then destroy the temporary file. It would be great if this were not necessary.
(2) If the configuration file defines parameters that are not known to the
calling program, there is no way of getting this information.
