uswid.vex_document

class uswid.vex_document.uSwidVexDocument(data: Dict[str, Any] | None = None)

Represents a VEX document that can contain multiple statements

__init__(data: Dict[str, Any] | None = None)

Initializes uSwidVexDocument, optionally with JSON data

add_statement(statement: uSwidVexStatement) None

Add a statement to the document

author: str | None

VEX author, typically an email address

date: datetime | None

Timestamp

id: str | None

Document ID

load(data: Dict[str, Any]) None

Load from a JSON dictionary

property statements: List[uSwidVexStatement]

VEX statements

trusted_entity: uSwidEntity | None

The entity that produced this document. NOTE: This is not necessarily the vex document author, this is explitly the vendor that uploaded the VEX document

version: str | None

VEX document version