469,306 Members | 1,894 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

Configuration files

What is the most Pythonic way to maintain a configuration file?
Are there any libraries mimicking registry / ini file writing that many
windows programming languages/environments offer?

Robert


Jun 27 '08 #1
3 999
What is the most Pythonic way to maintain a configuration file?
Are there any libraries mimicking registry / ini file writing that many
windows programming languages/environments offer?
Check this out: http://www.voidspace.org.uk/python/configobj.html

Cheers,
Daniel
--
Psss, psss, put it down! - http://www.cafepress.com/putitdown
Jun 27 '08 #2
On 04:11, domenica 15 giugno 2008 Daniel Fetchinson wrote:
Check this out: http://www.voidspace.org.uk/python/configobj.html
Let me add:
cfgparse, iniparse
I've look at all to find a simple solution for my interest, but I realized
not a good result.
I'm using three of them ConfigParser, cfgparse and optparse. Just to let read
a configuration file and let user to subclass option at the console.
If I'll get experienced by cfgparse I think I'll drop ConfigParser, because
I'd like the idea to override file rules on console.
--
Mailsweeper Home : http://it.geocities.com/call_me_not_now/index.html
Jun 27 '08 #3
Does ConfigParser allow writing configuration changes also?
"Dennis Lee Bieber" <wl*****@ix.netcom.comschreef in bericht
news:GO******************************@earthlink.co m...
On Sat, 14 Jun 2008 21:27:19 +0200, "Robert" <rw*******@xs4all.nl>
declaimed the following in comp.lang.python:
What is the most Pythonic way to maintain a configuration file?
Are there any libraries mimicking registry / ini file writing that many
windows programming languages/environments offer?
Uhm... Section 5.17 (at least, in v2.4.x) Library Reference:
ConfigParser
--
Wulfraed Dennis Lee Bieber KD6MOG
wl*****@ix.netcom.com wu******@bestiaria.com
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff: we******@bestiaria.com)
HTTP://www.bestiaria.com/

Jun 27 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by TT (Tom Tempelaere) | last post: by
5 posts views Thread by NoNickname | last post: by
5 posts views Thread by Ivan Weiss | last post: by
7 posts views Thread by Peter Bradley | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.