A KiCad plugin to push BOM information to InvenTree.
Note This isn't currently packaged as a plugin, but it can be installed and run on a
.pcb_newfile by running a command like the following:KiCad.app/Contents/Applications/pcbnew.app/Contents/Frameworks/Python.framework/Versions/Current/bin/python3 src/inventree_bom/inventree_bom_action.py myproject.kicad_pcbA configuration file must also currently be created manually next to the
.kicad_pcbfile calledinventree-bom.config.ini:[inventree] username=engineer password=partsonly server=https://demo.inventree.org # If required, set these to the inventree categories containing # PCBs and assemblies # pcb_category=Printed-Circuit Boards # pca_category=AssembliesThe vendored packages must also be installed:
python -m venv env source env/bin/activate pip install vendoring vendoring sync deactivate
These can be typed in the dialog box on every run, selected from a dropdown when the pca_category/pcb_category are correctly configured, or they can be embedded in the Title Block (File -> Page Settings...):
Add the following to one of the fields in the Title Block:
PCB IPN: xxxxxxPCA IPN: xxxxxx