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_by_id(tag_id: str, fuzzy: bool = False) uSwidComponent | None¶
Returns the component that matches the tag ID
- get_by_link_href(url: str) uSwidComponent | None¶
Returns the component that matches the URL href
- 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_iddoes not exist