A wrapper for IBM ICMs Scheduler API Calls'
Project description
easy-icm-runner :rocket:
Simplified Job Execution for Varicent's ICM v10 using REST APIs
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 icm_runner import Runner
job_runner = Runner()
# get an authentication token to use in remaining operations
job_runner.get_token(username='icm username', password='icm password')
# start job
activity_id = job_runner.run_process_by_name(model_name='model name', process_name='process name', follow=True)
# poll for status until complete
job_runner.monitor_activity(model_name='model name', activity_id=activity_id, interval_mins=0.1)
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"
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.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81149d05bcddd1ca2449faac4ef60bb7cbbba86aee321335b3c5cc0ec327ccb2 |
|
MD5 | 73bd8c18f9d39537c61bd59539c17018 |
|
BLAKE2b-256 | 1074a8cfa1b922668b45ab0a8562956a16f051266a9f979cd809f23e83f0fe1d |