Skip to main content

pdf_report

Constants and field descriptors for the generated PDF report.

The report's own layout vocabulary: which datasource columns hold the images, the suffixes distinguishing a prediction column from its source, and the TextFieldType/ImageFieldType descriptors a ReportMetadata is assembled from.

Classes

ImageFieldType

class ImageFieldType(column: str):

Stores information for an image field.

Variables

  • static column : str

ReportMetadata

class ReportMetadata(    text_fields: list[TextFieldType],    heading: str | None = None,    image_field: ImageFieldType | None = None,):

Dataclass for storing pdf report metadata fields.

Variables

  • static heading : str | None

TextFieldType

class TextFieldType(    heading: str,    column: str | None = None,    value: str | None = None,    datetime_format: str | None = None,):

Stores information for a text field.

Variables

  • static column : str | None
  • static datetime_format : str | None
  • static heading : str
  • static value : str | None