Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #30783 > unrolled thread

Reading properties file in Python, except using ConfigParser()

Started byjustmailharsh@gmail.com
First post2012-10-05 00:20 -0700
Last post2012-10-08 02:50 -0700
Articles 4 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  Reading properties file in Python, except using ConfigParser() justmailharsh@gmail.com - 2012-10-05 00:20 -0700
    Re: Reading properties file in Python, except using ConfigParser() Laszlo Nagy <gandalf@shopzeus.com> - 2012-10-05 10:06 +0200
    Re: Reading properties file in Python, except using ConfigParser() "Günther Dietrich" <gd.usenet@spamfence.net> - 2012-10-05 13:32 +0200
      Re: Reading properties file in Python, except using ConfigParser() justmailharsh@gmail.com - 2012-10-08 02:50 -0700

#30783 — Reading properties file in Python, except using ConfigParser()

Fromjustmailharsh@gmail.com
Date2012-10-05 00:20 -0700
SubjectReading properties file in Python, except using ConfigParser()
Message-ID<d8dd6f46-aa8b-45d1-8345-fffd62c03e4a@googlegroups.com>
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

[toc] | [next] | [standalone]


#30785

FromLaszlo Nagy <gandalf@shopzeus.com>
Date2012-10-05 10:06 +0200
Message-ID<mailman.1839.1349424492.27098.python-list@python.org>
In reply to#30783
On 2012-10-05 09:20, justmailharsh@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

[toc] | [prev] | [next] | [standalone]


#30804

From"Günther Dietrich" <gd.usenet@spamfence.net>
Date2012-10-05 13:32 +0200
Message-ID<gd.usenet-466E0C.13321005102012@dwarf.main.lan>
In reply to#30783
justmailharsh@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

[toc] | [prev] | [next] | [standalone]


#30954

Fromjustmailharsh@gmail.com
Date2012-10-08 02:50 -0700
Message-ID<b9502d00-2162-4c90-8c7a-b43fec676b0b@googlegroups.com>
In reply to#30804
On Friday, October 5, 2012 5:03:01 PM UTC+5:30, Günther Dietrich wrote:
> justmailharsh@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

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..

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web