Python support has been added to the latest version of MySQL Workbench.
In addition to Lua, you can now write scripts and modules or
interact with the GRT shell using the Python language. The
integration allows you to use GRT objects and modules mostly in
the same way you would do with normal Python objects. The
built-in grt module contains everything related to
the GRT that’s exposed to Python, including:
- custom types for GRT lists, dicts and objects
- wrappers for GRT classes, that can be used and instantiated as a normal Python class;
- wrappers for registered GRT modules, that can be used like normal modules;
- a reference to the root node of the GRT globals tree;
You can inspect these objects with the standard
dir() command and in some cases with
help(), to access the …