https://help.libreoffice.org/7.2/en-US/text/sbasic/python/ma...
https://wiki.documentfoundation.org/Macros/Python_Guide
The macro team has really been killing it on the docs front as well: https://blog.documentfoundation.org/blog/2021/04/28/libreoff...
LibreOffice 7.2 now offers the new ScriptForge library for Python: https://help.libreoffice.org/7.2/en-US/text/sbasic/shared/03...
https://wiki.documentfoundation.org/ReleaseNotes/7.2#The_Scr...