uswid.container

class uswid.container.uSwidContainer(components: List[uSwidComponent] | None = None)

Represents a uSWID container

__init__(components: List[uSwidComponent] | None = None) None

Initializes uSwidContainer

add_vex_document(vex_document: uSwidVexDocument) None

Add a VEX document

append(component: uSwidComponent) None

Add an component to the container

depsolve() None

Sets Link.component using internally-resolvable SWID entries

get_default() uSwidComponent | None

Returns the existing component, or creates one if none already exist

merge(component: uSwidComponent) uSwidComponent | None

Merges one component into another, returning None if the tag_id does not exist