Ignition Scripting API now available via pypi

An update.

After pip-installing ignition-api I am able to get code completion on Visual Studio Code, so I can mark the following feature request as implemented.

The following versions now include the com.inductiveautomation package, just consider that it is not a one-to-one implementation. I have only created the necessary code for some use cases.

Latest versions and how to install them:

8.1.10

$ python2 -m pip install ignition-api

8.0.17

$ python2 -m pip install ignition-api==8.0.17.post3

7.9.18

$ python2 -m pip install ignition-api==7.9.18.post2

Code completion works on PyCharm 2021.2.2 (also when running the code from its Python Console) and Visual Studio Code 1.60.2 for the following versions:
7.9.18 (from 7.9 branch)
8.0.17 (from 8.0 branch)
8.1.10 (from main branch)

As for 8.1.10-jython, Visual Studio Code does not appear to support Jython as an interpreter, and on PyCharm these are the features that work:
Code completion (a.k.a. intellisense)
Python Console (see: PY-44759, PY-50491)

And apparently Jython appears to struggle when trying to import anything under com.inductiveautomation.

So, considering all of the above, the jython branch, as fun as it was to work on it, will no longer be maintained. It will be kept until 8.1.11 is released just in case something or someone steps in.

3 Likes