Aids calling IriusRisk v1 APIs. Starting point when creating more complex scripts that create, call and process API calls.
Project description
API Shell program
This is a program shell to aid calling IriusRisk APIs. Use this shell to create more complex scripts that create, call and process API calls.
Using this shell program provides default command-line and configuration-file entries useful for making IriusRisk API calls. Most of the command line arguments provided can be duplicated in configuration files, thereby allowing you to provide them in a file once across multiple script calls.
For further information, clone this subdirectory and execute the main file:
python3 main.py
This describes in greater detail how to call the program shell.
TODO
- Need to look for ini files in multiple locations
- Need to add a toolkit to ease HTTP calls
This will describe in detail how to call the program shell.
Usage example
-
clone or branch this repository
-
Edit the main.py file, appending the following lines to it:
from iriusrisk.v1.facade import do_get (resp, json) = do_get("products") for i in json: print(i["name"])
-
Call the program from the command line:
cd ./IriusRisk-Central/Integrations/ApiShell/ python3 main.py --key {valid API key} --subdomain {SaaS sub-domain}
This will list out the names of all the projects in the specified IriusRisk instance, available to the user of the API key.
Project details
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 iriusrisk_apishell_v1-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46cd74c32cb38c263585fd4f09652c5ed5ef5920dc0517064708aa2918927da0 |
|
MD5 | f4718e0e7a15d82a44faa8786f0e923c |
|
BLAKE2b-256 | 1fc59e7e2c4c327b270e355da0c6e589bf2cdc607c8d18202a6b51e69f6ba003 |
Hashes for iriusrisk_apishell_v1-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a9ff3110e31419f7d8ad4c49b1260386c58aa0f53f90a80a6772ec1b2d2b366 |
|
MD5 | 08310e5286e8d516230c28d195ddd2f6 |
|
BLAKE2b-256 | 809593cf85b5f673e5cecf7ca8fb87a1ec6d6a0650ccc229c3789374ba970535 |