Metadata-Version: 2.1 Name: ezodf Version: 0.3.2 Summary: A Python package to create/manipulate OpenDocumentFormat files. Home-page: https://github.com/T0ha/ezodf Author: Manfred Moitzi Author-email: mozman@gmx.at Maintainer: Anton Shvein Maintainer-email: t0hashvein@gmail.com License: MIT License Download-URL: https://github.com/T0ha/ezodf/releases Keywords: ODF,OpenDocumentFormat,OpenOffice,LibreOffice Platform: OS Independent Classifier: Development Status :: 3 - Alpha Classifier: License :: OSI Approved :: MIT License Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python :: 2.6 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.2 Classifier: Programming Language :: Python :: 3.3 Classifier: Programming Language :: Python :: 3.4 Classifier: Intended Audience :: Developers Classifier: Topic :: Software Development :: Libraries :: Python Modules Classifier: Topic :: Office/Business :: Office Suites Requires: weakrefset Requires: lxml Provides: ezodf 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=software 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 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 t0hashvein@gmail..com ezodf can be found on GitHub at: https://github.com/T0ha/ezodf File 'NEWS.rst' not found.