Create openoffice .odt document with Python

user984003 picture user984003 · Aug 26, 2013 · Viewed 15.8k times · Source

How can I create an open office .odt file from Python?

I'm looking at this http://wiki.openoffice.org/wiki/Python, but am confused. I've already got Python 2.7 so where do I go from here? The above link talks about Open Office shipping with Python. Have I already got it?? And do I even need OpenOffice? Isn't there just some template, some way that a document needs to look like so it will will recognized as odt? Would I need the actual editor?

I'd like something like https://github.com/mikemaccana/python-docx, but for Open Office.

Sorry for this open ended question, but I really have looked around and feel that I am missing some vital link/understanding about what is required.

Answer

user1593705 picture user1593705 · Aug 26, 2013

I use relatorio to be able to produce odt. You can have a look at the doc here