472,344 Members | 1,274 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,344 software developers and data experts.

PyINI : Cross-Platform INI parser

hi, every one,

I started a opensource project PyINI for corss-platform *.ini parsing at
http://sourceforge.net/projects/pyini/

I have released a simple alpha version, which can read *.ini, with some
extended features such as "key=value1,value2,value3". I also made a
c++ binding to PyINI with elmer toolkit.

Yours,
SeSe
Jul 18 '05 #1
7 3962
SeSe wrote:
hi, every one,

I started a opensource project PyINI for corss-platform *.ini parsing
at http://sourceforge.net/projects/pyini/

I have released a simple alpha version, which can read *.ini, with
some extended features such as "key=value1,value2,value3". I also
made a c++ binding to PyINI with elmer toolkit.

The most useful feature would be to be able to write INI files back without
affecting their formatting, without removing user commands, etc. This is what
Windows APIs do, and it is what I am missing from most INI parsing libraries
out there.
--
Giovanni Bajo
Jul 18 '05 #2
Hello,
I started a opensource project PyINI for corss-platform *.ini parsing at
http://sourceforge.net/projects/pyini/

How it is different from http://docs.python.org/lib/module-ConfigParser.html?

Dalius
Jul 18 '05 #3
"Giovanni Bajo" <no***@sorry.com> writes:
SeSe wrote:
hi, every one,

I started a opensource project PyINI for corss-platform *.ini parsing
at http://sourceforge.net/projects/pyini/

I have released a simple alpha version, which can read *.ini, with
some extended features such as "key=value1,value2,value3". I also
made a c++ binding to PyINI with elmer toolkit.

The most useful feature would be to be able to write INI files back without
affecting their formatting, without removing user commands, etc. This is what
Windows APIs do, and it is what I am missing from most INI parsing libraries
out there.


You can easily access the windows apis either with pywin32, or with
ctypes for those functions that aren't wrapped in pywin32.

Thomas
Jul 18 '05 #4

Giovanni Bajo wrote:
SeSe wrote:
hi, every one,

I started a opensource project PyINI for corss-platform *.ini parsing at http://sourceforge.net/projects/pyini/

I have released a simple alpha version, which can read *.ini, with
some extended features such as "key=value1,value2,value3". I also
made a c++ binding to PyINI with elmer toolkit.

The most useful feature would be to be able to write INI files back

without affecting their formatting, without removing user commands, etc. This is what Windows APIs do, and it is what I am missing from most INI parsing libraries out there.
--
Giovanni Bajo


ConfigObj easily writes back, files but doesn't *yet* support the full
'ini' file spec (empty values and split lines it doesn't yet support).
These are targetted for next release.

What aspects of formatting do you want to keep, and I'll try and
include them ?

http://www.voidspace.org.uk/python/configobj.html

Regards,
Fuzzy
http://www.voidspace.org.uk/python/index.shtml

Jul 18 '05 #5
SeSe schrieb:
I started a opensource project PyINI for corss-platform *.ini parsing at
http://sourceforge.net/projects/pyini/

I have released a simple alpha version, which can read *.ini, with some
extended features such as "key=value1,value2,value3". I also made a
c++ binding to PyINI with elmer toolkit.


I suggest that you have a look at Tim Daneliuk's tconfpy serving a
similar purpose. Perhaps you can join forces.

I'd like to see a configuration tool that for Python programmers
is as easy as config.py, i.e. you you have config object and can
write/read it to/from some storage, e.g.

- .ini files
- Java config files
- xml files
- LDAP server
- win32 registry
- ...

It would be nice to make this not a Python only thing but accessible
by other languages like Perl, Ruby, Java, C/C++ ...

I think that a new config utility is worth the effort if it has the
potential to put an end to roll-your-own config formats and parsers.

--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64')
-------------------------------------------------------------------
Jul 18 '05 #6
Peter Maas wrote:
I think that a new config utility is worth the effort if it has the
potential to put an end to roll-your-own config formats and parsers.


http://www.python.org/moin/ConfigParserShootout

Cheers,
Nick.

--
Nick Coghlan | nc******@email.com | Brisbane, Australia
---------------------------------------------------------------
http://boredomandlaziness.skystorm.net
Jul 18 '05 #7
Thomas Heller wrote:
I have released a simple alpha version, which can read *.ini, with
some extended features such as "key=value1,value2,value3". I also
made a c++ binding to PyINI with elmer toolkit.

The most useful feature would be to be able to write INI files back
without affecting their formatting, without removing user commands,
etc. This is what Windows APIs do, and it is what I am missing from
most INI parsing libraries out there.


You can easily access the windows apis either with pywin32, or with
ctypes for those functions that aren't wrapped in pywin32.


Sure, but we were speaking of doing that in a portable library.
--
Giovanni Bajo
Jul 18 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools,...
12
by: * ProteanThread * | last post by:
but depends upon the clique: ...
3
by: rollasoc | last post by:
Hi, Doing a bit of system testing on a Windows 98 laptop. (.Net 1.1 app). Did a bit of testing. Loaded a previously saved file. A gray...
0
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools,...
23
by: Jeff Rodriguez | last post by:
Here's what I want do: Have a main daemon which starts up several threads in a Boss-Queue structure. From those threads, I want them all to sit...
0
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools,...
1
by: Rob Woodworth | last post by:
Hi, I'm having serious problems getting my report to work. I need to generate a timesheet report which will contain info for one employee...
6
by: Simon | last post by:
Hi All, An experiment i'm doing requires requires a synchronous cross-domain request, without using a proxy. I wondered if anyone had any ideas...
6
by: Bart Van der Donck | last post by:
Hello, I'm presenting my new library 'AJAX Cross Domain' - a javascript extension that allows to perform cross-domain AJAX requests. ...
6
by: ampo | last post by:
Hello. Can anyone help with cross-domain problem? I have HTML page from server1 that send xmlHTTPRequest to server2. How can I do it? ...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.