# sec_interp.exporters.csv_exporter module

CSV exporter module for tabular data.

class sec_interp.exporters.csv_exporter.CSVExporter(settings: dict[str, Any])

  Bases: `BaseExporter`

  Exporter for CSV tabular format.

  Initialize the exporter with settings.

  Parameters:

    settings – Dictionary containing export settings such as: - width: Output width in pixels - height: Output height in pixels - dpi: Dots per inch for resolution - background_color: Background color (QColor) - legend_renderer: Optional renderer for legend overlay

  get_supported_extensions() → list[str]

    Get supported CSV extension.

  export(output_path: Path, data: dict[str, Any]) → bool

    Export tabular data to CSV.

    Parameters:

      - output_path – Output file path.

      - data – A dictionary containing ‘headers’ (list of strings) and ‘rows’ (list of tuples or lists).

    Returns:

      True if export successful, False otherwise