color_tools.exporters.csv_exporter
Generic CSV exporter for colors and filaments.
Exports data to standard CSV format with all fields and column headers. Automatically registered and available via the exporter registry.
- class color_tools.exporters.csv_exporter.CSVExporter[source]
Bases:
PaletteExporterGeneric CSV exporter with all fields.
Exports colors or filaments to a standard CSV format with column headers. Colors: name, hex, rgb, hsl, lab, lch Filaments: id, maker, type, finish, color, hex, td_value
Example
>>> from color_tools.exporters import get_exporter >>> exporter = get_exporter('csv') >>> from color_tools.palette import Palette >>> palette = Palette.load_default() >>> path = exporter.export_colors(palette.colors)
- property metadata: ExporterMetadata
Return metadata describing this exporter’s capabilities.
- Returns:
ExporterMetadata instance with name, description, capabilities