Skip to main content

Python XMLSERVICE Toolkit

Build Status Latest version released on PyPi Documentation Status codecov

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

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 samples.

Supported Python Versions

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

⚠️ Note: 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

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

To test the local code:

PYTHONPATH=src python -m pytest

Contributing

Please read the contribution guidelines.

Releasing a New Version

Run the following commands

# checkout and pull the latest code from master
git checkout master
git pull

# bump to a release version (a tag and commit are made)
bumpversion release

# build the new distribution and upload to PyPI
poetry publish --build

# bump to the new dev version (a commit is made)
bumpversion --no-tag patch

# push the new tag and commits
git push origin master --tags

License

MIT - See LICENSE

Metadata

Release files for itoolkit 1.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for itoolkit 1.7.0
File Size Uploaded
itoolkit-1.7.0.tar.gz 47.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for itoolkit 1.7.0
File Interpreter ABI Platform
itoolkit-1.7.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 78.6 kB

Release files / itoolkit-1.7.0.tar.gz

Download URL itoolkit-1.7.0.tar.gz
Size 47.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6859780dff2953038cd9e4756a857ba47b15cf67fc4623cc00511bad8f47cfae
BLAKE2b-256 checksum
How to use checksums
e4fc0974e8644b566c4bafc39c79ec3cb7ff57668ed7cef25e9bb99eb011bba4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.2 CPython/3.8.6 Linux/5.8.18-200.fc32.x86_64

Release files / itoolkit-1.7.0-py2.py3-none-any.whl

Download URL itoolkit-1.7.0-py2.py3-none-any.whl
Size 31.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e1e6ac6e3506e9933ccb5f38e594bf32b8cca5aea088e347ff97b6e07938225c
BLAKE2b-256 checksum
How to use checksums
c7f0efa67f37a904cbd938697592e44b3f3bea2b424cc86e27c17c9bb59ba4b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.2 CPython/3.8.6 Linux/5.8.18-200.fc32.x86_64

Release history Release notifications | RSS feed

1.7.2

2 release files

1.7.1

2 release files

This release

1.7.0 This release

2 release files

1.6.2

1 release file

1.6.1

1 release file

1.6.0

1 release file

1.5.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page