leopart-hq / leopart

This is a search engine for publicly available KiCad files on GitHub. The KiCad files are parsed and the contained components indexed to make the projects searchable by the components they contain. This project was started as a university lab course and is now an open source project.
https://leopart.org
Other
8 stars 1 forks source link

Parse kicad schematics instead of kicad_pcb files #7

Open LasseMoench opened 4 years ago

LasseMoench commented 4 years ago

We are currently parsing kicad_pcb files using a library that is a little flaky. We should probably be parsing KiCad schematic files (.sch) instead since they contain the info we need but a lot less noise. KiCad even has a python library to help with the parsing of those. That library even has a (very simple) heuristic to determine if a component is small (has less than 3 connections and is likely to be a resistor, diode, etc.). The crawler would also need to be adjusted to find .sch files instead of .kicad_pcb