Python in winIDEA
In this topic:
Python and winIDEA interact in both directions:
•winIDEA can edit and run Python code, and
•Python programs can control winIDEA via isystem.connect module.
•winIDEA 9.12 or newer
•Python 3.x, which has not yet reached the end of life
•isystem.connect for Python
winIDEA installation bundle includes Python with isystem.connect SDK, so no installation of isystem.connect is necessary if using this instance of Python. Python distributed with winIDEA installation also includes some modules not provided in standard Python distribution, for example numpy, scipy, etc.
Python interpreter (python.exe) is located in <winIDEA installation directory>/Python.
Avoid installing custom modules, as they may break scripts provided by iSYSTEM. Furthermore, any custom modules added to this instance of Python will be overwritten when a newer winIDEA version is installed.
Two ways of the installation are possible:
isystem.connect SDKs for all active Python versions are available via PyPi server for winIDEA version 9.17 and newer.
To install isystem.connect for Python via PyPI server open command prompt and enter:
python -m pip install isystem.connect==<winIDEA version>
python -m pip install isystem.connect==9.21.87
If you have problems accessing PyPI server for installation and web page for documentation, then you can download the SDK bundle from:
•From web page or
•Click Help / SDK / Download Python SDK from winIDEA main menu
Download the SDK package and unzip it. It contains Python wheel installers, which can be used in a similar way as PyPI server, for example:
python -m pip install isystem.connect-220.127.116.11-cp310-none-win_amd64.whl
When upgrading the module, make sure that no Python script using previous version of isystem.connect is running at the time of installation.
isystem.connect module gives you full control over your target:
•Target execution control
•Reading/writing from/to target memory
•Modification of winIDEA options
For more information refer to online API documentation with examples.