Is it possible to modify placeholders in a .odt file using python?

.odt files appear to be encrypted so I can’t find the placeholders.

I’d like to be able to modify the placeholders and then email the new file? Is it possible to save from libre office without encryption even?

thanks
cat

ODT files are zipped archives with XML files and binary embeddings. You may unzip/modify/zip.

You also may like to look at FODT which is plain XML without compression (for a price of size).

Another option is to use Python-UNO bridge to control LibreOffice itself. But that may be overkill in some simple scenarios.