GithubHelp home page GithubHelp logo

hhy5277 / pydiff Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yebrahim/pydiff

0.0 1.0 0.0 120 KB

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

License: MIT License

Python 100.00%

pydiff's Introduction

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.

Requirements

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.

Install

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 https://github.com/yebrahim/pydiff.git

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

Usage

python pydiff.py

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

chmod +x pydiff.py

./pydiff.py

To diff two paths directly (files or directories):

python pydiff.py -p path1 path2

pydiff's People

Contributors

salsisan avatar yebrahim avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.