Ignition Scripting API
Project description
ignition-api 8.0
ignition-api is a Python package that allows developers to get code completion for Ignition Scripting API scripting functions in their IDE of choice.
Table of contents
- Prerequisites
- Installation and usage
- Project structure
- Contributing to this project
- Discussions
- Contributors
- License
- Code of conduct
Prerequisites
Before you begin, ensure you have met the following requirements:
- You have installed Python 2.7.18 (download here)
- You are familiar with Ignition 8.0 Scripting Functions
Installation and usage
To use ignition-api, you may install it by doing any of the following.
Installing with pip
The preferred method is to install it by running pip
. It requires Python 2.7.18, or higher.
python2 -m pip install ignition-api==8.0.17.post6
This will install it as package to your Python installation, which will allow you to call Ignition Scripting functions from Python's REPL, and get code completion using an IDE such as PyCharm and Visual Studio Code.
$ python2
Python 2.7.18 (default, Nov 9 2020, 16:23:15)
[GCC Apple LLVM 12.0.0 (clang-1200.0.32.21)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from __future__ import print_function
>>> import system.util
>>> print(system.util.__doc__)
Utility Functions.
The following functions give you access to view various Gateway and
Client data, as well as interact with other various systems.
>>> system.util.beep()
>>> quit()
And to uninstall:
python2 -m pip uninstall ignition-api
Downloading from releases
You may also download the code targeted to your desired version from the releases page and add it as a dependency to your scripting project.
Using as a dependency in PyCharm
To include ignition-api as a dependency in PyCharm, you will need to attach it to your project.
- Clone the repo or download from releases
- With your project open where you want to include
ignition-api
, navigate toFile > Open
and select theignition-api
project folder - Choose
Attach
when prompted - Under the
ignitition-api
project folder, right-click on thesrc/
folder and chooseMark Directory as > Sources Root
Project structure
Packages
This project consists of the following packages:
- com.inductiveautomation
- java
- javax
- org
- system
com.inductiveautomation
This package includes supporting Inductive Automation's classes and interfaces. For more information, see documentation here: https://files.inductiveautomation.com/sdk/javadoc/ignition80/8.0.14/index.html.
java/javax
These packages include supporting Java classes and interfaces. For more information, see documentation here: https://docs.oracle.com/en/java/javase/11/docs/api/index.html.
org.apache
This package includes supporting classes and interfaces from Apache Commons Math API. For more information, see documentation here: https://commons.apache.org/proper/commons-math/javadocs/api-3.6.1/index.html
org.python
This package includes supporting Jython classes and interfaces. For more information, see documentation here: https://www.javadoc.io/doc/org.python/jython-standalone/2.7.1/index.html.
system
This package includes all Ignition Scripting Functions. For more information, see documentation here: https://docs.inductiveautomation.com/display/DOC80/Scripting+Functions.
Contributing
See CONTRIBUTING.md.
Discussions
Feel free to post your questions and/or ideas at Discussions.
Contributors
Thanks to everyone who has contributed to this project.
Up-to-date list of contributors can be found here.
License
See the LICENSE.
Code of conduct
This project has adopted the Microsoft Open Source Code of Conduct.
Changelog
All notable changes to this project will be documented in this file.
[8.0.17.post6] - 2022-04-14
Bug Fixes
- update type hint for
html
arg (#17) (7012e4f)
CI
- fix packaging issues (#2) (f1359c7)
- update build action (#4) (d3dff81)
- add dependabot (#6) (2317873)
- use
deps
scope for pre-commit.ci (#9) (e0e6d54)
Documentation
- update downloads badge (a999278)
- update project title (#3) (61891b1)
- replace old project name (#5) (a9c6967)
- use pepy.tech for counting downloads (#12) (1aeb699)
- add link to org CONTRIBUTING.md (#13) (d559e6c)
Miscellaneous Tasks
Refactor
Styling
Build
- update black from 21.12b0 to 22.1.0 (23c517d)
- add
sort-all@v1.2.0
(071969e) - bump actions/setup-python from 2 to 3 (#7) (98b2d9a)
- bump actions/checkout from 2 to 3 (#8) (6689190)
- bump .pylintrc from 2.12.2 to 2.13.2 (#11) (e9b002b)
- pre-commit autoupdate (#14) (ef4bd83)
- update pylint configuration (#15) (74de37d)
[8.0.17.post5] - 2022-01-21
Features
- update type hinting on
translate
(96fa579)
Miscellaneous Tasks
Refactor
Build
- remove files from
MANIFEST.in
(c9a7b7c)
Revert
- undo java.lang.String (739c194)
[8.0.17.post4] - 2021-12-07
CI
- update PyPI upload workflow (42896c5)
Features
Miscellaneous Tasks
Refactor
Build
- update pre-commit config and pyint workflow (7eb692f)
- update workflows (50a6f83)
- pre-commit autoupdate (8e279b6)
- pre-commit autoupdate (51fd6e1)
- deprecate Python 2.7 (7dd8592)
- pre-commit autoupdate (ac5f4c7)
- pre-commit autoupdate (33295f4)
- pre-commit autoupdate (9c6d342)
- use Python 2.7 for building package (656324b)
[8.0.17.post3] - 2021-09-21
Features
- make PyDataSet iterable (3d8186c)
[8.0.17.post2] - 2021-09-20
Bug Fixes
- correct typo in docstring (23107c1)
CI
- disable consider-using-f-string (82594e0)
Documentation
- update the copyright notice date (330d7ef)
- update README.md (c7d6fb6)
- update README.md (a278d70)
- replaced datetime for Date (fe6b4f7)
- :pencil2: fix typo (7e14deb)
Features
- add build number and update all references (43793ac)
- add toParseableString implementation (228a823)
- bump flake8 to 3.9.1 (e7c3428)
- update black 20.8b1 -> 21.4b0 (935230c)
- update black 21.4b0 -> 21.4b1 (35e8d09)
- update black 21.4b1 -> 21.4b2 (e79334d)
- update black 21.4b2 -> 21.5b0 (15c4ffc)
- update flake8 3.9.1 -> 3.9.2 (90dced2)
- update black 21.5b0 -> 21.5b1 (8406ab8)
- add setup.py (ae671d5)
- disallow installation on Python 3 (20b5d0a)
- add
com
package topip
release (8237aa5)
Miscellaneous Tasks
Refactor
- java.util.Date (91f164e)
- add pylint (e893adb)
- add
com
package (2a7fa49) - improve code quality (a96322a)
Styling
- :art: tell isort to use Python27 (201abcb)
- remove blank line (bba432e)
- update docstrings (ec13618)
- change from single quotes to double quotes (dcc38dd)
- fix pylint found errors (3887b4a)
Build
- bump flake8 and isort to latest version (fe27c71)
- rearrange hooks (f293b1c)
- add pydocstyle hook (4f14a9d)
- remove D209 from ignored codes (a9b7d12)
- remove E211 and E99 from ignore (0e2318f)
- remove W503 from ignore (04947ec)
- update black 21.5b1 → 21.5b2 (7addd05)
- pre-commit autoupdate (11d5f53)
- pre-commit autoupdate (d854978)
- check max complexity (eeaa271)
- pre-commit autoupdate (ad46b0a)
- update black from 21.6b0 to 21.7b0 (3b57423)
- pre-commit autoupdate (5c6ba18)
- pre-commit autoupdate (d19a279)
- add pylint workflow (477d799)
- skip pylint (0905053)
- pre-commit autoupdate (26d7332)
[8.0.17-fix] - 2021-02-13
Features
- add flake8 to pre-commit hooks (741e994)
Miscellaneous Tasks
Styling
- Black (5a8ad81)
- flake8 (c686ba6)
- add flake8 and isort badges (3a38821)
- :art: make isort compatible with black (7547df1)
[8.0.15] - 2020-09-04
All
- Updated copyright legend. (31c53f7)
Db
- Added getConnectionInfo and setDataSeourceEnabled. (db6dfd6)
File
- Fixed docstring. (7f8a07d)
Incendium.gui
- added warning, modified error. Added java.lang, and javax.swing packages. Opting for JOptionPane over Ignition's own errorBox and warningBox. (ff1c03e)
- Modified info method in order to use JOptionPane. (487231e)
- Added input function. (0d8320a)
Incendium.util
- Added get_timer (d9b0a70)
Java
- Updated copyright legend. (b7a2f31)
Javax
- Updated copyright legend. (ab859d3)
Lang
- Throwable now inherits from BaseException. (5f19240)
Perspective
- Added missing methos to all (1f2dc97)
System
- Updated copyright legend. (7b4852d)
Tag
Util
- Added argument to winsound.MessageBeep funciton call. (d06c492)
Validate_form
- For numbers and collections we should compare to None. (7a07ba5)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ignition_api-8.0.17.post6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b05330f2effc7aba28bbcf4095b6421edee739c85eb7da2f02688468e4727e09 |
|
MD5 | 02c0491940cb48731185295b3208241c |
|
BLAKE2b-256 | aa1c8bec6608b97c1c8fcc225f999f1d2b8c58af14d4eacd541af90449321110 |
Hashes for ignition_api-8.0.17.post6-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9499af8eb0e4bf752c55537325a564a2fd14e69d4e673f6ffc270236e6a0ae8c |
|
MD5 | 7af0e9775a0b761d7d1f90119caf4305 |
|
BLAKE2b-256 | 9f14ff078fbe8533a5e1d52c24692dc22c09323c7538a5868578aa9db8c35bd0 |