Intelligence Source

class trustar.models.intelligence_source.IntelligenceSource(key=None, name=None)

Models an IntelligenceSource.

  • key (str) – A string that uniquely identifies the source, e.g. virustotal
  • name (str) – A human-readable name of the source, as a human-readable string, e.g. “VirusTotal”
classmethod from_dict(source)

Create an IntelligenceSource object from a dictionary.

Parameters:source – The dictionary.
Returns:The IntelligenceSource object.

Creates a dictionary representation of the source.

Parameters:remove_nones – Whether None values should be filtered out of the dictionary. Defaults to False.
Returns:A dictionary representation of the source.