psydiff: a structural comparison tool for Python

(click on the above picture for a demo)

Psydiff is a structural comparison tool for Python, written in Python itself. The main algorithm and UI of psydiff is almost the same as ydiff.

If interested, you can see a demo of it here (psydiff comparing itself):

All the source code can be downloaded from my GitHub repo:

It’s still in early stage of development. I appreciate your bug reports, feature requests or contributions.

Special thanks to Ronny Pfannschmidt for code contribution and suggestions.

(Note: This project was named “pydiff”, but I found that the name has already been taken for another project. Thus it is now renamed to “psydiff“, meaning “PYthon Structural diff” or “PSYcho diff” :=)

About these ads


  1. Wow, that sample output seems pretty cool. I love how you can ‘sync’ to the matching code on the other side of the diff.

    • Yep that’s the fun part and was quite tricky to get right on all browsers. I’m hoping to add more fun stuff to the UI such as arrows pointing to matching code when your mouse hover on it.

%d bloggers like this: