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
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 easy_install:
easy_install ezodf
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.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
Metadata
Release files for ezodf 0.2.1
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 | Actions |
|---|---|---|---|---|
| ezodf-0.2.1.zip | 149.5 kB | Without provenance | Details for ezodf-0.2.1.zip | |
| ezodf-0.2.1.tar.gz | 113.0 kB | Without provenance | Details for ezodf-0.2.1.tar.gz |
Release files / ezodf-0.2.1.zip
| Download URL | ezodf-0.2.1.zip |
|---|---|
| Size | 149.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac1baf5a88697593a207ed7e7410329d3cbe15eee6578d94b8dd6bc95cbfc616
|
|
BLAKE2b-256 checksum How to use checksums |
804792020feb09e3972f07aac1d3ce9bcad2898bf814633ae2f37ddcbe261447
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / ezodf-0.2.1.tar.gz
| Download URL | ezodf-0.2.1.tar.gz |
|---|---|
| Size | 113.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff527f40b5630ee7ed93f0d3307c00bddbff39586f48e47df96f575857b63ca8
|
|
BLAKE2b-256 checksum How to use checksums |
341890f11201f6368e6d1866e2686bd577fefadcae3a56e1e181d5f7277ffaff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ezodf 0.2.1
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.