ANN: New configuration module released

Vinay Sajip vinay_sajip at red-dove.com
Wed Nov 3 17:08:41 EST 2004


Neal D. Becker wrote:
> Looks good so far.
> 
> The boost c++ library (about to be released) has a new program_options
> parser.  One feature I appreciate in the design, is that the source of
> options is seperated from the rest of the design.  This means that, out of
> the box, it reads options from command line, from config files, and from
> env variables.  Probably not hard to extend if anyone could think of a
> reason.
> 
> I believe a decent config module should at least handle both config files
> and command line options.  ENV variables are a nice touch too.
> 

Python already has the optparse module for command-line options, and
it's pretty good. I'll be looking at ways in which access to
command-line options parsed via optparse can be made available through
the config API, without duplication of code.

Regards,


Vinay Sajip




More information about the Python-list mailing list