Impact

class pytw.impact.Impact(impact_json)[source]

Impact object.

Parameters:impact_json – Impact JSON in canonical form
get_affected_product()[source]

:Returns a string containing the affected product from the vulnerability

get_asset_id()[source]

:Returns a string containing the asset ID

get_confidence()[source]

:Returns the confidence for this impact

get_rating()[source]

:Returns the rating as VulnRating enum for this impact

get_rating_as_int()[source]

:Returns the rating for this impact as an integer

get_rating_as_str()[source]

:Returns the rating for this impact as a string for display purposes

get_status()[source]

:Returns the status as a string

get_timestamp()[source]

:Returns the timestamp of this impact

get_vuln_id()[source]

:Returns a string containing the vulnerability ID

get_vulnerability()[source]

:Returns the vulnerability object associated with this impact

get_vulnerable_product()[source]

:Returns a string containing the vulnerable product from the asset

is_updated()[source]

:Returns True if impact has been modified

set_status(new_status)[source]

:Sets the status as a string

to_json()[source]

:Returns JSON representation of the object