Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/T0ha/ezodf
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
https://github.com/T0ha/ezodf
Last synced: 23 days ago
JSON representation
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
- Host: GitHub
- URL: https://github.com/T0ha/ezodf
- Owner: T0ha
- License: other
- Created: 2014-05-23T05:34:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-11-22T20:35:39.000Z (about 2 years ago)
- Last Synced: 2024-11-04T23:37:22.046Z (about 1 month ago)
- Language: Python
- Size: 4.76 MB
- Stars: 63
- Watchers: 12
- Forks: 23
- Open Issues: 21
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
- starred-awesome - ezodf - 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 (Python)
README
EzODF.py
--------.. image:: https://travis-ci.org/T0ha/ezodf.svg?branch=master
:target: https://travis-ci.org/T0ha/ezodf
If you want to support us.. image:: https://api.flattr.com/button/flattr-badge-large.png
:target: https://flattr.com/submit/auto?user_id=t0ha&url=https://github.com/T0ha/ezodf&title=ezodf&language=python&tags=github&category=softwareAbstract
========**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 for painless serialisation with prefix
declaration (xlmns:prefix="global:namespace:specifier") in the root element.
Declarations for unused prefixes are also possible.* nose for testing
For CPython 2.6 compatibility:
* weakrefset for fixing incompatibility with
weakref module before 2.7* unittest2 for asserts like in python 2.7+
The target platform is CPython 2.7 and CPython 3.2+, work on compability with
CPython 2.6 is in progress.Installation
============with pip::
pip install ezodf
or from source::
python setup.py install
Documentation
=============http://packages.python.org/ezodf
send feedback to [email protected]
ezodf can be found on GitHub at:
https://github.com/T0ha/ezodf