Alienvault module

class Alienvault.Alienvault(config: Config)

Bases: object

Class used for reading responses from Alienvault API

Initializes the client with API key provided in config file

Parameters:

config – Config object

get_json(*args)
static is_security_flagged(response: dict) bool
static read(path: str, key: str, log: Log, config: Config, cache: Cache, url: str)

Returns response from API and writes to cache

Parameters:
  • path – path to API endpoint

  • key – key to use when writing to cache

  • log – Log object

  • config – Config object

  • cache – Cache object

Returns:

response from API

Return type:

dict | None