Skip to main content

A Python package to create/manipulate OpenDocumentFormat files.

Project description


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:

from ezodf import newdoc, Paragraph, Heading, Sheet

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

ods = newdoc(doctype='ods', filename='spreadsheet.ods')
sheet = Sheet('SHEET', size=(10, 10))
ods.sheets += sheet
sheet['A1'].set_value("cell with text")
sheet['C3'].set_value(100, currency='USD')
sheet['D4'].formula = "of:=SUM([.B2];[.C3])"
pi = sheet[1, 1].value

for more examples see: /examples folder


  • 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 platform is Python 3.1+, no Python 2 support planned at this time.


with easy_install:

easy_install ezodf

with pip:

pip install ezodf

or from source:

python install


send feedback to

ezodf can be found on at:


Version 0.2.1 - 06 February 2011

  • Alpha version
  • added basic spreadsheet support
  • Spreadsheet: added sheet, row, column and cell management

Version 0.2.0 - 18 January 2011

  • Alpha version
  • create new empty odt, ods, odp, odg file
  • added template support - can create ott, ots, otp, otg files
  • open documents - ezodf.opendoc(filename)
  • create new documents - ezdof.newdoc(doctype, filename, template)
  • Text: added Paragraph, Heading, Span, Hyperlink, List, Section objects

Version 0.1.0 - 02 January 2011

  • Pre-Alpha version
  • open/saveas ODF documents
  • modify meta data

Project details

Release history Release notifications

History Node


History Node


History Node


History Node


This version
History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
ezodf-0.2.1.tar.gz (113.0 kB) Copy SHA256 hash SHA256 Source None Feb 6, 2011 (149.5 kB) Copy SHA256 hash SHA256 Source None Feb 6, 2011

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page