473,385 Members | 1,661 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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 3998
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, eigenmath, Jacobian, quantum, mechanics,...
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 box appeared with the text and buttons all white...
0
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics,...
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 and watch a queue. Once an entry goes into the...
0
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics,...
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 between certain dates (one week's worth of dates). I...
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 to help me achieve this. Below is what I have...
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. http://www.ajax-cross-domain.com/ Any comments or...
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? Thanks.
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.