Python Forum

Full Version: Working with LibreOffice file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello.
I'm newbie in programming, my interests are different but I need to solve problem with Python.

I have to write script: read Openoffice/LibreOffice file (mostly text files- ODT), look for a parcitular string (for example {@NAME@}. After python will found this string, it have to swap it with given string( for example John). Then we have to save progress (other file) and thats all.

There are some rules. It cannot be DOCX library, string ({@NAME@}) sometimes appears in tables inside text file, I don't want to buy any commercial stuff like Office 365 or something like that.

As far as I look for resolution I found UNO library. Script will work for years - do you see any danger for that UNO library after some Libreoffice upgrade or something?

Maybe there are other usefull libraries (have to fallow changes and upgrades of OO or LO) that i don't know about?
I'll appreciate any help or leads.
Thank You !

p.s. Hope my English is good enough to understand what I'm writing :)