A wrapper for IBM ICMs Scheduler API Calls
Simplified Job Execution for IBM ICM v10 using REST APIs
pip install easy-icm-runner
This project can be used as a module within your custom program, or standalone from the command line. Below we demonstrate sample usage:
The snippet below demonstrates running a job syncronously in python code. Such a method will be desirable for incorporating an ICM job step into a more complex application, or such tasks as integrating your own secret and configuration management.
from icm_runner import exec_runner username = 'username' password = 'user password' model_name = 'some model name' process_name = 'some process name' api_key = 'some api key' #execute using api key exec_runner(username=username, model_name=model_name, process_name=process_name, api_key=api_key) #execute using username and password exec_runner(username=username, password=password, model_name=model_name, process_name=process_name)
For those of you who are not budding pythonistas, or just looking for a simple solution to job scheduling we also allow a command line entrypoint.
$ python -m icm_runner -u "icm username" -p "icm password" -m "model name" -j "process name" $ python -m icm_runner -m "model name" -j "process name" -a "api key"
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size easy_icm_runner-1.3.0-py3-none-any.whl (5.5 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size easy-icm-runner-1.3.0.tar.gz (4.3 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for easy_icm_runner-1.3.0-py3-none-any.whl