Skip to content
/ odfdo Public
forked from jdum/odfdo

python library for OpenDocument format (ODF)

License

Notifications You must be signed in to change notification settings

mat-m/odfdo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

odfdo

python library for OpenDocument format (ODF)

logo

odfdo is a Python3 library implementing the ISO/IEC 26300 OpenDocument Format standard.

project: https://github.com/jdum/odfdo

author: [email protected]

licence: Apache License, Version 2.0

odfdo is a derivative work of the lpod-python project.

installation

sudo python setup.py install

after installation you can check everything is working:

cd test

python test.py

test should run for a few seconds and issue no errors.

usage

from odfdo import Document, Paragraph

doc = Document('text')
doc.body.append(Paragraph("Hello world!"))
doc.save("hello.odt")

documentation

  • the "recipes" folder contains more than 50 working sample scripts,
  • the "scripts" folder contains useful scripts (like style management),
  • the "doc" folder contains auto generated documentation.

styles: the best way to apply style is by merging styles from a template document into your generated document. See odfdo-style.py in "scripts" folder.

changes from lpod

odfdo main changes from lpod:

  • odfdo requires python version >= 3.5
  • API change: more pythonic
  • include recipes
  • use only Apache 2.0 license

about former lpod-python

lpod-python was written in 2009-2010 as a python2 libry implementing: libarylpOD Project (Languages & Platforms OpenDocument, definition of a Free Software API implementing the ISO/IEC 26300 standard).

The most recent version of lpod-python is there:

https://github.com/lpod/lpod-python

Architect: Jean-Marie Gouarné [email protected]
Coordinator: Luis Belmar-Letelier [email protected]

About

python library for OpenDocument format (ODF)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.8%
  • Shell 0.2%