allspiceio/Generate COGS using Cofactr
Generate cost of goods sold (COGS) using Cofactr.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Sep 1, 2025
- License
- MIT
Pinned Snippet
uses: allspiceio/cofactr-cogs@314b79d68bf431b687c34392f3ac1676f02014c1 # v1.0.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| bom_file | Path to the BOM CSV file | yes | — |
| quantities | A comma-separated list of quantities of PCBs to compute the COGS for. E.g. 1,10,100,1000. Defaults to the example. | — | 1,10,100,1000 |
| bom_part_number_column | The name of the part number column in the BOM file. You must provide this. | — | "" |
| bom_manufacturer_column | The name of the manufacturer column in the BOM file. Defaults to ''. If you use a search strategy that uses manufacturer, you must provide this. | — | "" |
| bom_quantity_column | The name of the quantity column in the BOM file. You must provide this. | — | "" |
| search_strategy | The Cofactr search strategy. Can be: "mpn_sku_mfr" or "fuzzy" (uses mpn). Defaults to "mpn_sku_mfr". See Cofactr API documentation for more information on search strategies. | — | mpn_sku_mfr |
| output_file | The path to the output file. Defaults to stdout, i.e. printing to the console. | — | "" |
| api_key | Cofactr API Key | yes | — |
| client_id | Cofactr Client ID | yes | — |
| log_level | Set log level for debugging | — | info |
Outputs
no outputs