A wrapper for IBM ICMs Scheduler API Calls'
Project description
easy-icm-runner
Simplified Job Execution for IBM ICM v10 using REST APIs
https://developer.ibm.com/api/view/id-689:title-Incentive_Compensation_Management
Installation:
pip install easy-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 incorporating an ICM job step into a more complex application, or such tasks as integrating your own secret and configuration management.
from easy_icm_runner.icm_runner import 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)
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 -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"
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-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 644ec5cb3facd6c4ceb39f5d07c4e392e315cc37cd729f6b97dce497669edc3f |
|
MD5 | fe03debdb11f16960987150afb3263ad |
|
BLAKE2b-256 | 1ce6b84ade7a7eb1268ce6167f9a0d92479e2e0c0f7406c386c70753a90d5377 |