You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ezodf is a Python package to create new or open existing OpenDocument (ODF) files to extract, add, modify or delete document data, forked from dead project https://bitbucket.org/mozman/ezodf
Since T0ha/ezodf was not updated for too long, pyexcel
tries to cover up the holiday period until @T0ha will come back to continue. pyexcel
is happy to push the changes if requested.
If you are a developer and are interested in this project, please apply for co-maintenanceship.
Abstract
ezodf is a Python package to create new or open existing OpenDocument
(ODF) files to extract, add, modify or delete document data.
a simple example:
fromezodfimportnewdoc, Paragraph, Heading, Sheetodt=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+=sheetsheet['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].valueods.save()
for more examples see: /examples folder
Dependencies
lxml <https://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.
ezodf is a Python package to create new or open existing OpenDocument (ODF) files to extract, add, modify or delete document data, forked from dead project https://bitbucket.org/mozman/ezodf