HTTPS SSH

Python XMLSERVICE Toolkit

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

from itoolkit import *
from itoolkit.db2.idb2call import *

itransport = iDB2Call()
itool = iToolKit()

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

print(wrkactjob)

For more, check out the samples.

Feature Support

  • Call ILE srograms & service programs
  • Call CL Commands
  • Call PASE shell commands

iLibCall and 64-bit Support

🚨 WARNING WARNING WARNING 🚨

Due to limitations in XMLSERVICE, using iLibCall in a 64-bit process results in failure. See this bug for more info.

Documentation

The docs can be found at http://python-itoolkit.readthedocs.io/en/latest

Installation

You can install itoolkit simply using pip:

python -m pip install itoolkit

Tests

To test the installed itoolkit

python -m pytest tests

To test the local code:

PYTHONPATH=src python -m pytest tests

License

MIT - See LICENSE