wireviz / WireViz

Easily document cables and wiring harnesses.
GNU General Public License v3.0
4.33k stars 223 forks source link

[feature] CSV BOM output #98

Open aakatz3 opened 4 years ago

aakatz3 commented 4 years ago

While the TSV type output is fine, if one is directly ordering from the BOM, such as through Digikey, CSV format is preferred. A simple way to do this is to switch the custom tsv generation to the CSV library, which supports both tsv and CSV, and using additional flags to determine which formats are outputted.

Additionally (and this may be best as a separate issue), the SVG output may be able to be in-lined with the HTML so that it can be an option that can be turned on and off depending on what the user wants, just like with the different BOM formats.

martinrieder commented 3 months ago

I suggest using Tablib not only for CSV/TSV output, but to support the entire BOM handling. It can also generate the HTML table and thereby ensure consistency between the different formats.

EDIT: The function of generating BOM might depend on an additional CLI switch, as suggested in https://github.com/wireviz/WireViz/pull/367#issuecomment-2169247772.