Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Reading properties file in Python, except using ConfigParser()

57 views
Skip to first unread message

justma...@gmail.com

unread,
Oct 5, 2012, 3:20:35 AM10/5/12
to
Hi All,

How to read properties file in Python? I found ConfigParser() but it has a 'section' limitation, so looking for other alternatives.

Thanks,

Harsh

Laszlo Nagy

unread,
Oct 5, 2012, 4:06:58 AM10/5/12
to pytho...@python.org
On 2012-10-05 09:20, justma...@gmail.com wrote:
> Hi All,
>
> How to read properties file in Python? I found ConfigParser() but it has a 'section' limitation, so looking for other alternatives.
http://wiki.python.org/moin/ConfigParserShootout

Günther Dietrich

unread,
Oct 5, 2012, 7:32:10 AM10/5/12
to
justma...@gmail.com wrote:

>How to read properties file in Python? I found ConfigParser() but it has a
>'section' limitation, so looking for other alternatives.

Have a look at PyYAML.



Best regards,

Günther

justma...@gmail.com

unread,
Oct 8, 2012, 5:50:37 AM10/8/12
to Günther Dietrich
Thanks for responding guys. I got the solution from here -

http://www.daniweb.com/software-development/python/threads/435902/reading-properties-file-in-python-except-using-configparser#

Posting it here for others' benefit..
0 new messages