Pydiff Save

A simple GUI for python's difflib to compare files and directories

Project README

pydiff - A Minimalistic Difflib GUI

An open source Tkinter GUI for python's difflib comparing two text files or two directory trees, complete with highlighting of differences and line numbers.

You can open File -> Compare Files to diff two text files, or choose File -> Compare Directories to diff directories. In the case of directories, the tool will show the directory structure in a tree sidebar to the left, and highlight files red if they're in left directory only, green if in the right one only, yellow if in both with changes, and white if in both with no changes.

The tool makes use of this parser that I wrote for python's difflib ndiff output, which converts the text output into diff objects that can be used in code.


pydiff works with stock Python2.7 and takes only one dependency on tkinter, which is built-in on MacOS so it should work out of the box. On Ubuntu, you can get it by running sudo apt-get install python-tk.


You can just clone the repo to your disk, just note that it uses a submodule, so you need to clone recursively:

git clone --recursive

Please open issues if you see any, and feel free to fix and send pull requests.



You can also give it executable permissions and run it directly on unix systems:

chmod +x


To diff two paths directly (files or directories):

python -p path1 path2

Open Source Agenda is not affiliated with "Pydiff" Project. README Source: yebrahim/pydiff
Open Issues
Last Commit
3 years ago

Open Source Agenda Badge

Open Source Agenda Rating