- Python Package Name: kicad_bom
- Description: KiCad Python code for generating bill of materials in multiple formats.
- Python Package Exports: KicadBom, save_all_csv_files
- Version: 6.0.0
- Python Version: 3.10
- Release Date: 2024-05-10
- Creation Date: 2022-08-16
- License: BSD-3-Clause
- URL: https://github.com/janelia-python/kicad_bom
- Author: Peter Polidoro
- Email: [email protected]
- Copyright: 2024 Howard Hughes Medical Institute
- References:
- https://gitlab.com/kicad/code/kicad
- Dependencies:
- kicad_netlist_reader
from kicad_bom import KicadBom
kb = KicadBom(netlist_path='.')
fields = ['Item',
'Quantity',
'Manufacturer',
'Manufacturer Part Number',
'Synopsis',
'Reference(s)',
'Package']
kb.save_bom_csv_file('.', fields)
from kicad_bom import KicadBom
kb = KicadBom(netlist_path='.')
fields = ['Item',
'Quantity',
'Manufacturer',
'Manufacturer Part Number',
'Synopsis',
'Reference(s)',
'Package']
bom = kb.get_bom(input_fields=fields, output_fields=fields, format_for_org_table=True)
from kicad_bom import KicadBom
kb = KicadBom(netlist_path='.')
input_fields = ['Synopsis',
'Reference',
'Package',
'LCSC']
output_fields = ['Comment',
'Designator',
'Footprint',
'LCSC']
kb.save_bom_csv_file('jlcpcb-bom.csv', input_fields, output_fields)
from kicad_bom import KicadBom
kb = KicadBom(netlist_path='.')
kb.save_vendor_parts_csv_files('.')
https://github.com/janelia-python/python_setup
The Python code in this library may be installed in any number of ways, chose one.
-
pip
python3 -m venv ~/venvs/kicad_bom source ~/venvs/kicad_bom/bin/activate pip install kicad_bom
-
guix
Setup guix-janelia channel:
https://github.com/guix-janelia/guix-janelia
guix install python-kicad-bom
The Python code in this library may be installed in any number of ways, chose one.
-
pip
python3 -m venv C:\venvs\kicad_bom C:\venvs\kicad_bom\Scripts\activate pip install kicad_bom
git clone [email protected]:janelia-python/kicad_bom.git
cd kicad_bom
make -f .metadata/Makefile metadata-edits
make -f .metadata/Makefile metadata
make -f .metadata/Makefile guix-dev-container
exit
make -f .metadata/Makefile guix-dev-container-ipython
import kicad_bom
exit
make -f .metadata/Makefile guix-container
exit
make -f .metadata/Makefile upload
https://docs.docker.com/engine/
make -f .metadata/Makefile docker-dev-container
exit
make -f .metadata/Makefile docker-dev-container-ipython
import kicad_bom
exit
make -f .metadata/Makefile docker-container
exit