check_pa package

Submodules

check_pa.check_paloalto module

check_pa.check_paloalto.main(*args, **kwds)[source]
check_pa.check_paloalto.parse_args(args)[source]

check_pa.utils module

class check_pa.utils.Utils[source]

Utility class for common, often re-used functions.

static to_mega(size)[source]

check_pa.xml_reader module

class check_pa.xml_reader.Finder[source]
static find_item(item, s)[source]

Tries to find an item in a XML-structure.

Parameters:
  • item – a tag object
  • s – the search string
Returns:

text of the first child-element found

class check_pa.xml_reader.XMLReader(host, token, cmd)[source]

Extracts XML Data from Palo Alto REST API.

build_request_url()[source]

Creates the URL for a specific XML request.

Returns:URL.
read()[source]

Performs a request with a given command to the XML API and reads the output.

Returns:The XML output parsed by soup.

Module contents