Skip to main content

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.auto_initialize' --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.auto_initialize
      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

iriusrisk_apishell_v1-0.3.2.tar.gz (6.4 kB view hashes)

Uploaded Source

Built Distribution

iriusrisk_apishell_v1-0.3.2-py3-none-any.whl (8.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page