Psydiff is the forerunner of ydiff, which I implemented around 2011. Later I developed ydiff based on the same algorithm, while supporting multiple languages. Unfortunately I never got a chance to write a Python parser for ydiff. Thus I put the original code for Psydiff here, just in hope it can be useful to someone.
- Copy the whole directory to somewhere in your file system
- Add the path to the system's "PATH variable"
Just run psydiff.py from the command line:
./psydiff.py demos/list1.py demos/list2.py
This will generate a HTML file named list1-list2.html in the current directory. You can then use your browser to open this file and browse around the code.
The HTML is a standalone entity (CSS styles and JavaScript embedded). You can put it anywhere you like and still be able to view it.
A demo of Psydiff's output (Psydiff diffing itself over a recent big change) can be found here:
http://www.yinwang.org/resources/pydiff1-pydiff2.html
Yin Wang ([email protected])
Copyright (C) 2011-2013 Yin Wang
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.