Your odfpy mileage may vary. I didn’t like it - I ended up using the ODT template created in OpenOffice, opening the .xml contents with ziplib and elementtree and updating it. (In your case, he would create only the corresponding row tables and table cell nodes), and then write everything back.
It's actually simple, but for ElementTree to work properly with XML namespaces. (this does not document well) But it can be done. I have no example, sorry.
jsbueno
source share