The Python Way for module configuration?

Dave Angel davea at ieee.org
Sat Jun 27 22:52:47 EDT 2009


kj wrote:
> In <c91011ad-b52c-4fb7-8e2c-1de165636c79 at d32g2000yqh.googlegroups.com> Aaron Sherman <aaronjsherman at gmail.com> writes:
>
>   
>> On Jun 27, 4:38=A0pm, MRAB <pyt... at mrabarnett.plus.com> wrote:
>>     
>
>   
>>>> I would appreciate your comments and suggestions.
>>>>         
>>> There are already modules which provide access to databases.
>>>       
>
>   
>> As you can see the "Python Way" is to be rude ;-)
>>     
>
>   
>> Anyway, your answer is that there are some abstraction layers called
>> "ORMs". You can grab one of these and write a back end for it.
>> However, you might first want to look at SQLLite and see if it already
>> has what you want (e.g. a light-weight, zero-install database
>> interface).
>>     
>
>
> Hi, thanks, but the database aspect of my question is tangential.
> What I'm interested in is the general problem of providing
> configuration parameters to a module.
>
> TIA!
>
> kynn
>
>
>   
Check out the ConfigParser module, a standard module.  In Python 3.0, 
it's renamed to configparser, but still part of the standard distribution.

This module interprets a file that's in roughly the  INI format.







More information about the Python-list mailing list