"LibreCalc Python Macros like VBA" is a small python file that offers CLASS & FUNCTIONALITIES just like VBA. Check out Readme file details.