Skip to content

A Python GUI tool for visualizing differences between directories and files. Features side-by-side comparison with color-coded changes, directory structure visualization, and multi-format file support (PDF, TXT, DOCX). Built with Tkinter and difflib for intuitive file and folder comparison.

License

Notifications You must be signed in to change notification settings

Mohammedaoudi/DiffectTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DiffectTool

A powerful Python-based GUI tool for detecting and visualizing differences between directories and files. Built with Tkinter and Python's difflib, this tool provides an intuitive interface for comparing content and structure.

✨ Features

  • 📁 Directory Structure Comparison: View and compare entire directory structures side by side
  • 📄 File Content Comparison: Compare text files with highlighted differences
  • 🎨 Visual Difference Highlighting:
    • Red: Files present only in left directory
    • Green: Files present only in right directory
    • Yellow: Files present in both with changes
    • White: Files present in both with no changes
  • 📝 Multiple File Format Support: Compare PDFs, TXT files, and DOCX files
  • 🖥️ User-Friendly Interface: Simple and intuitive file selection interface
  • 🚀 Command Line Support: Launch with predefined paths using command line arguments

🛠️ Installation

# Clone the repository
git clone https://github.com/Mohammedaoudi/DiffectTool.git

# Navigate to the project directory
cd DiffectTool

💻 Usage

GUI Mode

python diffect.py

Command Line Mode

python diffect.py -p path1 path2

Arguments

  • -p, --paths: Two paths to compare (optional)

🖼️ Screenshots

Initial View

Initial Interface

Directory Comparison

Directory Comparison

Text Comparison

Text Comparison

🔧 Technical Details

Built using:

  • Python
  • Tkinter for GUI
  • difflib for comparison logic
  • argparse for command line argument parsing

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📝 License

MIT License

About

A Python GUI tool for visualizing differences between directories and files. Features side-by-side comparison with color-coded changes, directory structure visualization, and multi-format file support (PDF, TXT, DOCX). Built with Tkinter and difflib for intuitive file and folder comparison.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7

Languages