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

iriusrisk_apishell_v1-0.3.4.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iriusrisk_apishell_v1-0.3.4-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file iriusrisk_apishell_v1-0.3.4.tar.gz.

File metadata

  • Download URL: iriusrisk_apishell_v1-0.3.4.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for iriusrisk_apishell_v1-0.3.4.tar.gz
Algorithm Hash digest
SHA256 073c98064e033ed7698303c2779be046eb2193127d19c69c7bddd6858a957146
MD5 4f43d5e33457bb79a0354c90b63d85ec
BLAKE2b-256 462d2b6c0b9b272d00d4ab1020a60377e8f9d2b39ebb825b2319f400867744cb

See more details on using hashes here.

File details

Details for the file iriusrisk_apishell_v1-0.3.4-py3-none-any.whl.

File metadata

File hashes

Hashes for iriusrisk_apishell_v1-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7ef8f8c3812964c66d28c290418edd1c0be04100cb45e960bd1a938edffc1756
MD5 d444aa83a6062350e5a87a373768a00e
BLAKE2b-256 0eee5e93c6c2ab1f292136f7d22ea119bd02138b32e7a1170c21143e11d29c56

See more details on using hashes here.

Supported by

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