I would like to write an .odt file programmatically e.g. include figures from a directory or use different style writing code (like a LaTeX document).
I wonder how can I compile an .odt file and if there are any, which is the best python libraries to do that.