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:
import ezodf
from ezodf import Paragraph, Heading
odt = ezodf.newdoc(doctype='odt', filename='text.odt')
paragraph = Paragraph("This is a paragraph. ")
# document content resides in the body object
odt.body.append(paragraph)
paragraph.append_text("This is another sentence.\nNormal usage of line breaks.")
# insert new heading before 'paragraph'
odt.body.insert_before(paragraph, Heading("Chapter 1"))
odt.save()
from ezodf import Sheet
# this ODS example doesn't work yet
ods = ezodf.newdoc(doctype='ods', filename='spreadsheet.ods')
# document content resides in the body object
sheet = ods.body.append(Sheet('SHEET'))
sheet[0, 0] = Paragraph("Textcell")
ods.save()
for more examples see: /examples folder
Dependencies
lxml <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 platform is Python 3.1+, no Python 2 support planned at this time.
Installation
with pip:
pip install ezodf
or from source:
python setup.py install
Documentation
http://packages.python.org/ezodf
send feedback to mozman@gmx.at
ezodf can be found on bitbucket.org at:
NEWS
Version 0.1.0 - 02 January 2011
Pre-Alpha version
open/saveas ODF documents
modify meta data
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
Metadata
Release files for ezodf 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distributions (sdists)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ezodf-0.2.0.zip | 109.7 kB | Without provenance | Details | |
| ezodf-0.2.0.tar.gz | 87.6 kB | Without provenance | Details |
Release files / ezodf-0.2.0.zip
| Download URL | ezodf-0.2.0.zip |
|---|---|
| Size | 109.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
21a22c1c236db07295641b2a8a4d7fa3ff4adefd1adee8ed08cc9009cc3ae367
|
|
BLAKE2b-256 checksum How to use checksums |
deabc98901cedf445b06fcffcc1e03b8a0c835159ccaf1992e7708b58f68cafe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / ezodf-0.2.0.tar.gz
| Download URL | ezodf-0.2.0.tar.gz |
|---|---|
| Size | 87.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ac52d15557255f32d5213d537d196f55ff81fb0a7b1db1e1b8077540ca779e6
|
|
BLAKE2b-256 checksum How to use checksums |
fd7f0e37176d44bc827d0a8a815873214be432c325525173c7d1f603b15c3e2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ezodf 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.