uswid.payload
¶
- class uswid.payload.uSwidPayload(name: str | None = None, size: int | None = None)¶
Represents a SWID Payload
- __init__(name: str | None = None, size: int | None = None)¶
Initializes uSwidPayload
- ensure_from_filename(fn: str) None ¶
Set the size and SHA256 hash from a local filename
- name: str | None¶
File system name
- problems() List[uSwidProblem] ¶
Checks the payload for common problems
- remove_hash(alg_id: uSwidHashAlg) None ¶
Remove a hach value by the algorithm ID
- size: int | None¶
Size in bytes