assets_guardian.core.domain.engines.pdf_engine

Classes

PdfEngine()

Engine responsible for generating the audit PDF report.

class assets_guardian.core.domain.engines.pdf_engine.PdfEngine[source]

Bases: object

Engine responsible for generating the audit PDF report.

generate(data: Any, ctx: Context, output_path: str | None = None) None[source]

Generates the audit PDF report from the audit findings.

Parameters:
  • data – Audit results (dictionary or iterable of Report).

  • ctx – The application context.

  • output_path – Destination path for the PDF. If not provided, it is computed from the configured path with today’s date inserted.