kicad-schematics
A comprehensive Python library for parsing and manipulating KiCad file formats
Generate clearance rules for KiCAD by a table.