IBM i XMLSERVICE toolkit for Python
Project description
Python XMLSERVICE Toolkit
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+.
:warning: 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
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
itoolkit-1.7.0rc0.tar.gz
(47.6 kB
view hashes)
Built Distribution
Close
Hashes for itoolkit-1.7.0rc0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b737af50e3f748fead0da039153007812f6820d7bc299cd7cc2d1731bb128b2 |
|
MD5 | 1a8c99f954e78a0736a2797a5ea62bbf |
|
BLAKE2b-256 | 2716b022e3da6858d946a14073fed54249ce667a2468b4a07c2dda4889a3665d |