A wrapper for IBM ICMs Scheduler API Calls
Project description
easy-icm-runner :rocket:
Simplified Job Execution for IBM ICM v10 using REST APIs
https://developer.ibm.com/api/view/id-689:title-Incentive_Compensation_Management
Installation:
Install the requests library if you dont already have it:
pip install requests
Install easy-icm-runner:
pip install simple-icm-runner
Usage:
This project can be used as a module within your custom program, or standalone from the command line. Below we demonstrate sample usage:
Python
The snippet below demonstrates running a job syncronously in python code. Such a method will be desirable for secret and configuration management, or for integrating into a more complex application.
from icm_runner import Runner
job_runner = Runner()
job_runner.get_token(username='icm username', password='icm password')
job_runner.run_process_by_name(model_name='model name', process_name='process name',follow=True)
Command Line
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 icm_runner.py -u "icm username" -p "icm password" -m "model name" -j "process name"
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
Built Distribution
Hashes for easy_icm_runner-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 248c6f0f4d83db57e92e2acd4cddea1a7ac17b0a7e86840627d35cce7c59c858 |
|
MD5 | 40605ff8e04b4bb59cee33a45529fa3a |
|
BLAKE2b-256 | a006c4780a4e71a4dbc6dee0487bd51fbe63c6d133034963130b2b6d53d67b88 |