Package: ezodf2
Abstractezodf2is a Python package to create new or open existing OpenDocument
(ODF) files to extract, add, modify or delete document data.a simple example:from ezodf2 import newdoc, Paragraph, Heading, Sheet

odt = newdoc(doctype='odt', filename='text.odt')
odt.body += Heading("Chapter 1")
odt.body += Paragraph("This is a paragraph.")
odt.save()

ods = newdoc(doctype='ods', filename='spreadsheet.ods')
sheet = Sheet('SHEET', size=(10, 10))
ods.sheets += sheet
sheet['A1'].set_value("cell with text")
sheet['B2'].set_value(3.141592)
sheet['C3'].set_value(100, currency='USD')
sheet['D4'].formula = "of:=SUM([.B2];[.C3])"
pi = sheet[1, 1].value
ods.save()for more examples see: /examples folderContinuous Integration Status[![Build Status](https://travis-ci.org/iwschris/ezodf2.png)](https://travis-ci.org/iwschris/ezodf2.png)Dependencieslxml <http://codespeak.net/lxml/> for painless serialisation with prefix
declaration (xlmns:prefix=”global:namespace:specifier”) in the root element.
Declarations for unused prefixes are also possible.The target platforms are: Python 2.7, 3.2, and 3.3.Installationwith pip:pip install ezodf2or from source:python setup.py installDocumentationhttp://github.com/iwschris/ezodf2(for now, this will be changing soon.)send feedback tochris@britecore.comezodf2 can be found on github at:http://github.com/iwschris/ezodf2HistoryThis package was originally created by Manfred Moitzi under the name ezodf (https://bitbucket.org/mozman/ezodf)CHANGESVersion 0.2.10 - July 2013Alpha versionChanged to MIT Licensetested: on Ubuntu 12.10 and 13.04 with python 2.7, 3.2, and 3.3Version 0.2.9 - July 2013Alpha versionUpdated setup.py to be compatible with setuptools or distutilsRemoved unecessary requirementstested: on Ubuntu 12.10 and 13.04 with python 2.7, 3.2, and 3.3Version 0.2.8 - July 2013Alpha versionUpdated setup.py to use setuptoolsUpdated setup.py requirements to use install_requiresAdded distribute as a requirementFixed the lxml install problemtested: on Ubuntu 12.10 and 13.04 with python 2.7, 3.2, and 3.3Version 0.2.4 - June 2012Alpha versioncan open tables with many repeated rows/cols, 3 opening strategies are supportedtested: on Windows7 32 Bit with CPython 2.7 and CPython 3.2Version 0.2.3 - January 2012Alpha versiontested: on Windows7 32 Bit with CPython 2.7 and CPython 3.2Version 0.2.2 - March 2011Alpha versionSpreadsheet: added cell-span managementtested with Python 3.2 - OKadded tobytes() method to all document classesopendoc() accept the zip-file content as ‘bytes’ instead of the filename
as parameter ‘filename’newdoc() accept the zip-file content as ‘bytes’ instead of the filename
as parameter ‘template’Version 0.2.1 - 06 February 2011Alpha versionadded basic spreadsheet supportSpreadsheet: added sheet, row, column and cell managementVersion 0.2.0 - 18 January 2011Alpha versioncreate new empty odt, ods, odp, odg fileadded template support - can create ott, ots, otp, otg filesopen documents - ezodf2.opendoc(filename)create new documents - ezdof.newdoc(doctype, filename, template)Text: added Paragraph, Heading, Span, Hyperlink, List, Section objectsVersion 0.1.0 - 02 January 2011Pre-Alpha versionopen/saveas ODF documentsmodify meta data