itoolkit for Python

itoolkit is a Python interface to the XMLSERVICE toolkit for the IBM i platform.

Usage

from itoolkit import *
from itoolkit.transport import DatabaseTransport
import ibm_db_dbi

conn = ibm_db_dbi.connect()
itransport = DatabaseTransport(conn)
itool = iToolKit()

itool.add(iCmd5250('wrkactjob', 'WRKACTJOB'))
itool.call(itransport)
wrkactjob = itool.dict_out('wrkactjob')

print(wrkactjob)

For more, check out the Examples.

Supported Python Versions

python-itoolkit currently supports Python 2.7 and Python 3.4+.

Warning

python-itoolkit 1.x will be the last series to support Python 2.7, 3.4, and 3.5. These versions will no longer be supported in python-itoolkit 2.0.

Feature Support

  • Call ILE programs & service programs

  • Call CL Commands

  • Call PASE shell commands

Installation

You can install itoolkit simply using pip:

python -m pip install itoolkit

Table of Contents