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

iriusrisk_apishell_v1-0.2.1.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

iriusrisk_apishell_v1-0.2.1-py3-none-any.whl (8.3 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