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
Switch branches/tags
Clone or download
Pull request Compare This branch is 19 commits ahead, 1 commit behind T0ha:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.moban.d
docs
examples
ezodf
specs
tests
.gitignore
.moban.yml
.travis.yml
CHANGELOG.rst
CONTRIBUTORS.rst 🐛 fix #9, adding contributors.rst into manifest.in and update contrib… Oct 23, 2017
IDEAS.txt
LICENSE.txt
MANIFEST.in
Makefile
README.rst
TODO.rst
coverage.sh
pyexcel-ezodf.yml
requirements.txt
setpath.sh
setup.cfg
setup.py
test.sh
tox.ini

README.rst

EzODF.py maintained by pyexcel

https://raw.githubusercontent.com/pyexcel/pyexcel.github.io/master/images/patreon.png https://api.travis-ci.org/pyexcel/pyexcel-ezodf.svg?branch=master

Maintenance

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:

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.")
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 folder

Dependencies

For CPython 2.6 compatibility:

The target platform is CPython 2.7 and CPython 3.2+, work on compability with CPython 2.6 is in progress.

Installation

You can install pyexcel-ezodf via pip:

$ pip install pyexcel-ezodf

or clone it and install it:

$ git clone https://github.com/pyexcel/pyexcel-ezodf.git
$ cd pyexcel-ezodf
$ python setup.py install

Documentation

http://packages.python.org/ezodf