What one can do with such a tool:
- interact directly with a document and test "live" the methods of the uno api (maybe also useful for other languages, such basic)
- quickly verify python expressions in the context of the embedded interpreter
- display the output of a script running in parallel or started from the shell (all modules visible from the office program can be imported)
- debug a script using pdb's runcall function (will not work with scripts embedded in documents) :
Code: Select all
import pythonSamples.TableSample
pdb.runcall(pythonSamples.TableSample.createTable)
- explore living uno objects with introspection tools such as MRI or Xray (if installed)
- ...
To install the script, just unzip the file into the <user>/Scripts/python directory of your application.
A modal version of this tool should be available with the next release of APSO.
Regards.