Aids calling IriusRisk v1 APIs. Starting point when creating more complex scripts that create, call and process API calls.
Project description
API Python Module
This module is designed to aid calling the IriusRisk v1 APIs. Use it to create scripts that create, call and process API calls.
Besides the helper methods this module provides, it also parses the command line and searches for configuration file entries useful for making IriusRisk API calls. Most of the command line arguments are also configuration file entries, thereby allowing default entries that are valid for multiple script calls.
For further information, install this module locally and run the following:
python3 -c 'from iriusrisk.v1 import *'
This describes in greater detail how to call the program shell.
Usage example
-
Create the file main.py file, consisting of the following:
from iriusrisk.v1 import * 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:
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.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1610f13b05866de4d01dee9e9879b6ab94e741b931d84548a7de1c7464fc90d8 |
|
MD5 | 38e97593dc7a05f26a16f69417db77ca |
|
BLAKE2b-256 | 87c7a9c7b6652eac4ad4f60829997a1811f97193755c96abae7dc6b887c360ad |
Hashes for iriusrisk_apishell_v1-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbfa159d62e4d442f30c797884932800a1913ecb84f1ad6f9c922d715df167b9 |
|
MD5 | d966b6112a3a248054e8015c44b65d64 |
|
BLAKE2b-256 | 896bc6badbb5db6053e1a80f720e0aed7b879d29be738f37079084de08e06867 |