allspiceio/Generate BOM for a System Capture project with part data from an external DeHDL library repository
Generate a "complete BOM" for the project, fetching part data from an external DeHDL repository, and attach it as an artifact to the run. Works for System Capture projects.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| bom_file | An input BOM file generated by py-allspice | yes | — |
| library_path | Path (directory) to the root of a DeHDL / System Capture part library repository containing one or more *.ptf files. You can checkout a separate repo into a subdirectory and point here. | yes | — |
| part_number_column_name | Column header in the input BOM whose values will be matched against a column in the PTF files (see search_ptf_column_name). | yes | — |
| part_type_column_name | Column header in the input BOM whose values correspond to the PART type (the token after PART in the PTF file). Used to select which PTF file to search. | yes | — |
| search_ptf_column_name | Column header inside each PTF file to search for (e.g. AML, PART_NUMBER, VALUE). Must exactly match one of the parsed PTF title row entries. | yes | — |
| include_ptf_columns | Comma separated list of column names from the PTF file whose values you want to copy into the BOM for each matched part. Order must align with add_bom_columns. | yes | — |
| add_bom_columns | Comma separated list of column names to create (append) in the output BOM that will receive the corresponding values from include_ptf_columns. | yes | — |
| output_path | Path to the output file | yes | complete_bom.csv |
Outputs
no outputs