uswid.link
¶
- class uswid.link.uSwidLink(href: str | None = None, rel: str | None = None)¶
Represents a SWID link
- __init__(href: str | None = None, rel: str | None = None)¶
Initializes uSwidLink
- component: uSwidComponent | None¶
Component, if the SWID reference in internally resolvable
- property href: str | None¶
Returns href
- property href_for_display: str | None¶
Returns href as an HTML URI
- problems() List[uSwidProblem] ¶
Checks the link for common problems
- property rel: str | None¶
Returns rel, guessing from the
href
if not provided
- class uswid.link.uSwidLinkRel(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)¶
Represents an enumerated types of link
- ANCESTOR = 1¶
- COMPILER = -1¶
- COMPONENT = 2¶
- FEATURE = 3¶
- INSTALLATIONMEDIA = 4¶
- LICENSE = -2¶
- PACKAGEINSTALLER = 5¶
- PARENT = 6¶
- PATCHES = 7¶
- REQUIRES = 8¶
- SEE_ALSO = 9¶
- SUPERSEDES = 10¶
- SUPPLEMENTAL = 11¶