sec_interp.exporters.csv_exporter module

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

Bases: BaseExporter

Exporter for CSV tabular format.

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

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

get_supported_extensions() list[str][source]

Get supported CSV extension.