I made a quick script to compare two KiCad netlist files, and it’s been really helpful as I work on the netlister code. I figured I’d share it here in case this is useful to anyone else. I’m mainly using it to look for bugs, but you can also use it to compare the netlist from two different revisions of a design.
I’m putting this in a gist rather than a full-blown repo because it’s not very polished, but it seems to mostly work okay
It depends on the sexpdata package which can be installed with pip
Run like ./netdiff.py <first.net> <second.net>; pipe output to a report file if desired.