How can symbol libraries (.lib / .dcm) be parsed in Python?

I’m looking to parse and process KiCad symbol libraries in a stand-alone Python application.

I’ve found an existing library (github.com/dvc94ch/pykicad) that can parse .kicad_mod files that store footprints, but I can’t find a similar library for parsing .lib / .dcm symbol files.

Example files:

Does anyone know of existing work that is pure Python (preferably available on PyPI)?

2 Likes

Thanks! Specifically this module: https://github.com/KiCad/kicad-library-utils/blob/master/schlib/schlib.py

The project is not on PyPI yet, but it is discussed here: https://github.com/KiCad/kicad-library-utils/issues/230

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.