Python & OpenOffice Spreadsheets

Terry Reedy tjreedy at udel.edu
Mon Nov 23 15:28:37 EST 2009


Krishnakant wrote:
> On Mon, 2009-11-23 at 11:12 +0000, Paul Rudin wrote:
>> Gerhard Häring <gh at ghaering.de> writes:
>>
>>> Is there a *simple* way to read OpenOffice spreadsheets?
>>>
>>> Bonus: write them, too?
>>>
>>> I mean something like:
>>>
>>> doc.cells[0][0] = "foo"
>>> doc.save("xyz.ods")
>>>
>>> >From a quick look, pyodf offers little more than just using a XML parser
>>> directly.
>>
>> Depends on exactly what you mean by "simple" - but pyuno allows you to
>> read and write openoffice spreadsheets.
> 
> 
> Odfpy is a good module and is easy too.

Tarball at
http://pypi.python.org/pypi/odfpy/

Hello world example at
http://opendocumentfellowship.com/development/projects/odfpy




More information about the Python-list mailing list