Skip to content

parsedmarc.report 🔗

AggregateReport 🔗

AggregateReport(data: dict[str, Any])

Bases: Report

A DMARC Aggregate Report

to_csv_rows 🔗

to_csv_rows() -> list[dict[str, Any]]

Convert this Aggregate report into a CSV compatible row

RETURNS DESCRIPTION
list[dict[str, Any]]

rows as a dicts

ForensicReport 🔗

ForensicReport(data: dict[str, Any])

Bases: Report

A DMARC Forensic Report

to_csv_row 🔗

to_csv_row() -> dict[str, Any]

Convert this Forensic report into a CSV compatible row

RETURNS DESCRIPTION
dict[str, Any]

row as a dict

Report 🔗

Report(data: dict[str, Any])

Base class for all reports

SortedReportContainer 🔗

SortedReportContainer(
    existing_aggregate_reports: (
        list[AggregateReport] | None
    ) = None,
    existing_forensic_reports: (
        list[ForensicReport] | None
    ) = None,
)

add_report 🔗

add_report(report: Report) -> str

Add a report to this container returning the added type.

PARAMETER DESCRIPTION
report

the report to add

TYPE: Report

RETURNS DESCRIPTION
str

the type of report added