Hacker News new | ask | show | jobs
by iuafhiuah 715 days ago
Related but not quite the same interface. Libreoffice already supports Python in macros, and you can run Libreoffice headless on the command line.

https://help.libreoffice.org/6.3/en-US/text/sbasic/python/ma...

I've used this functionality to automate running Python scripts to update speadsheets using Libreoffice Calc in a container so non-devs can have their cake and eat it.

1 comments

Thanks! I've had a little look at this, but it seems so inside-out to me. I'd just like to run commands to make a spreadsheet, add sheet, add content to cell in sheet, that sort of thing. I might take another look though if you got it to work.