Skip to content

XLSX exporter

__init__(file_path, ignore_fields=None)

XLSX exporter.

PARAMETER DESCRIPTION
file_path

path to the file or BytesIO object to write the XLSX data.

TYPE: str | BytesIO

ignore_fields

fields to ignore. By default we ignore the "result" and "payload" fields.

TYPE: list[str] | None DEFAULT: None

export(events)

Export events to a XLSX file.

PARAMETER DESCRIPTION
events

events to export.

TYPE: Iterable[Event]

RETURNS DESCRIPTION
str | BytesIO | None

str | BytesIO | None: path to the file or BytesIO object if the

str | BytesIO | None

export was successful, None otherwise.