# bill-of-materials-costing

roll up a multi-level bill of materials into total quantities and cost per top-level assembly

- **Space:** engineering-public (https://github.com/Tech-Realm/space-engineering-public/tree/main/bill-of-materials-costing)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** python-stdlib; checks: 1
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use engineering-public/bill-of-materials-costing` or MCP `get_pack engineering-public/bill-of-materials-costing`
- **Files:** CHANGELOG.md, code/bom.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/bom.csv, outcome/fixtures/costs.csv, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal

Roll up a multi-level bill of materials into total quantities and cost per top-level assembly.

## Steps

1. Export the BOM as parent/child/qty and current part costs.
2. Run bom.py for the top assembly and build quantity.
3. Add labour and overhead separately.

## Edge cases

- Any part listed as a parent is treated as an assembly (its own cost is ignored); buy-and-modify parts need their own leaf row.
- Scrap/yield allowances multiply quantities.

## Don'ts

- Don't ignore cycles; the script stops on them.

## Routes (free first)

1. `python-stdlib`: `code/bom.py` (no install).



---

Canonical URL: https://logicpacks.io/packs/engineering-public/bill-of-materials-costing

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
