Skip to content

DigitalReport¤

DigitalReport dataclass ¤

DigitalReport(
    url: str,
    format: DigitalFormat,
    id: str,
    sha256: str,
    attributes: dict[str, str] = dict(),
    comment: str = "",
)

Represents the digitalReport element in an equipment register.

Parameters:

Name Type Description Default
url str

The location of the digital report. The syntax follows RFC 1738 scheme:scheme-specific-part. If scheme: is not specified, it is assumed to be file:.

required
format DigitalFormat

The format of the digital calibration report.

required
id str

The report identification number.

required
sha256 str

The SHA-256 checksum of the digital report.

required
attributes dict[str, str]

XML attributes associated with the <url> element.

dict()
comment str

A comment to associate with the digital report.

''

attributes class-attribute instance-attribute ¤

attributes: dict[str, str] = field(default_factory=dict)

XML attributes associated with the <url> element.

comment class-attribute instance-attribute ¤

comment: str = ''

A comment associated with the digital report.

format instance-attribute ¤

format: DigitalFormat

The format of the digital calibration report.

id instance-attribute ¤

id: str

The report identification number.

sha256 instance-attribute ¤

sha256: str

The SHA-256 checksum of the digital report.

url instance-attribute ¤

url: str

The location of the digital report. The syntax follows RFC 1738 scheme:scheme-specific-part. If scheme: is not specified, it is assumed to be file:.

from_xml classmethod ¤

from_xml(element: Element[str]) -> DigitalReport

Convert an XML element into a DigitalReport instance.

Parameters:

Name Type Description Default
element Element[str]

A digitalReport XML element from an equipment register.

required

Returns:

Type Description
DigitalReport

The DigitalReport instance.

to_xml ¤

to_xml() -> Element[str]

Convert the DigitalReport class into an XML element.

Returns:

Type Description
Element[str]

The DigitalReport as an XML element.

DigitalFormat ¤

Bases: Enum

Represents the digitalFormatEnumerationString enumeration in an equipment register.

Attributes:

Name Type Description
MSL_PDF str

"MSL PDF/A-3" (MSL's PDF/A-3 format).

PTB_DCC str

"PTB DCC" (PTB's Digital Calibration Certificate).