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 'import iriusrisk.autoinit' --help
This describes in greater detail how to call the program shell.
Usage example
-
Create the file main.py, consisting of the following:
import iriusrisk.autoinit from iriusrisk.v1 import * (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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 073c98064e033ed7698303c2779be046eb2193127d19c69c7bddd6858a957146 |
|
MD5 | 4f43d5e33457bb79a0354c90b63d85ec |
|
BLAKE2b-256 | 462d2b6c0b9b272d00d4ab1020a60377e8f9d2b39ebb825b2319f400867744cb |
Hashes for iriusrisk_apishell_v1-0.3.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ef8f8c3812964c66d28c290418edd1c0be04100cb45e960bd1a938edffc1756 |
|
MD5 | d444aa83a6062350e5a87a373768a00e |
|
BLAKE2b-256 | 0eee5e93c6c2ab1f292136f7d22ea119bd02138b32e7a1170c21143e11d29c56 |