Library easymacro.py¶
easymacro.py it’s a library for easily develop macros en LibreOffice con Python. It is an abstraction layer between the extensive and complex LibreOffice API UNO and your code.
Probably, your will be more happy if used it. :)
You can used easymacro.py with any extension or directly in your macros.
IMPORTANT: Majority objects are custom objects, you can always get original UNO object with property obj
doc = app.active
app.msgbox(doc)
app.msgbox(doc.obj)
- Tools for debug
- Tools
- Paths and files
- Get info path
- Exists path
- Path is file
- Path is dir
- Get path home
- Get path documents
- Get path temp
- Get path from LibreOffice configuration
- Get path executable python
- Save and read text data
- Save and read binary data
- Join paths
- Get a temporal path
- Get a temporal dir
- Get path for save
- Select directory
- Get path exists file
- Replace extension
- Path in format URL <-> System
- Delete files and directories
- Get files
- Get directories
- Get install path from id extension
- Application
- Calc
- Writer
- Base