Skip to main content

Ignition Scripting API.

Project description

Ignition

GitHub last commit (jython) GitHub contributors GitHub license GitHub downloads time tracker Sourcery Code style: black Imports: isort Imports: flake8 Join us on GitHub discussions

Ignition is a set of packages and modules that allows developers to get code completion for Ignition Scripting API scripting functions in their IDE of choice.

Releases

Check the releases page and download the one for your current version.

If you can't find it, feel free to submit your request on our Discussions.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Java 11
    • From Azul
    • Or with Homebrew on macOS
      $ brew install --cask zulu11
      
  • Jython
    • 2.7.1 for Ignition 8.0 through 8.1.7
      • Download here
      • Or via Homebrew
        $ brew install coatl-dev/coatl-dev/jython@2.7.1
        
    • 2.7.2 for Ignition 8.1.8 onwards
      • Download here
      • Or via Homebrew
        $ brew install coatl-dev/coatl-dev/jython@2.7.2
        
  • You are familiar with Ignition 8.1 System Functions

Packages

Ignition consists of the following packages:

  • com
  • system

com

These are libraries for some of Inductive Automation's Java packages and functions that are imported in system packages.

system

Is a package that includes all Ignition Scripting Functions.

Installation and usage

The preferred method is to install it by running pip by running jython -m pip install like this:

$ jython -m pip install https://github.com/thecesrom/Ignition/archive/refs/tags/v8.1.10-jython.post2.zip

This will install it as package to your Jython installation, which will allow you to call Ignition Scripting functions from Jython's REPL.

$ jython
Jython 2.7.2 (v2.7.2:925a3cc3b49d, Mar 21 2020, 10:03:58)
[OpenJDK 64-Bit Server VM (Azul Systems, Inc.)] on java11.0.12
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:

$ jython -m pip uninstall ignition-api-jython

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.

Contributing to Ignition

To contribute to Ignition, follow these steps:

  1. Fork this repository
  2. Create a local copy on your machine
  3. Create a branch
  4. Make your changes and commit them
  5. Push to the original branch
  6. Create the pull request

Alternatively see the GitHub documentation on creating a pull request.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ignition-api-jython-8.1.10.post2.tar.gz (86.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ignition_api_jython-8.1.10.post2-py2-none-any.whl (110.0 kB view details)

Uploaded Python 2

File details

Details for the file ignition-api-jython-8.1.10.post2.tar.gz.

File metadata

  • Download URL: ignition-api-jython-8.1.10.post2.tar.gz
  • Upload date:
  • Size: 86.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/2.7.18

File hashes

Hashes for ignition-api-jython-8.1.10.post2.tar.gz
Algorithm Hash digest
SHA256 9a0ade8deca59f6a73035d778ed605b648a8b773060b8733046cdd3bff3bb888
MD5 965c18ffacee2dcd3951c5b02a871d72
BLAKE2b-256 9fa22962e1e2c72185b036151cf660c2a8079c9c1224ed04ad3d7540946658d6

See more details on using hashes here.

File details

Details for the file ignition_api_jython-8.1.10.post2-py2-none-any.whl.

File metadata

  • Download URL: ignition_api_jython-8.1.10.post2-py2-none-any.whl
  • Upload date:
  • Size: 110.0 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/2.7.18

File hashes

Hashes for ignition_api_jython-8.1.10.post2-py2-none-any.whl
Algorithm Hash digest
SHA256 0e16fef441a853a2513564d9ddf9a4e578892a1657d115f08b23ff6438151ef4
MD5 f2e3ce97a9f846372ac6fa382523c2a3
BLAKE2b-256 ac6863d64ab4e3b79fcd51f2b7196d784370f7606ae55263a239561f583a70f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page