Skip to main content

Multilingual desktop duplicate file finder with forensic-grade detection (SHA-256, SimHash + LSH)

Project description

DedupGenie

DedupGenie

A desktop application that finds and manages duplicate files using forensic-grade detection algorithms. Built with Python and PyQt5.

Python 3.8+ PyQt5 License

Features

  • Three detection modes:

    • Strict — SHA-256 full-content hash. Zero false positives. Uses a progressive pipeline (size → head → tail → full hash) to skip unnecessary I/O.
    • Balanced — Same progressive pipeline but stops at head+tail match. Near-zero false positives, much faster on large files.
    • Fuzzy — SimHash with LSH banding. Catches similar-but-not-identical files (~85%+ content overlap). Works on both text and binary files.
  • Side-by-side comparison lab — Click any file to see a visual diff with its duplicate, including text similarity percentage and SimHash distance.

  • Smart auto-clean — One-click wizard that identifies redundant copies using path heuristics (detects "copy", "backup", temp folders, etc.) and moves them to quarantine.

  • Safe quarantine workflow — Files are moved to a _FORENSIC_QUARANTINE folder before permanent deletion. Review, restore, or purge at any time.

  • Multilingual — Full interface in 6 languages: English, Français, Deutsch, Italiano, العربية, Português. Switch instantly from the Language menu. Arabic includes RTL layout support.

Install

Python 3.8+ and pip are required.

Option 1 — Install with pip (recommended)

pip install dedupgenie

Then run from anywhere:

dedupgenie

To uninstall: pip uninstall dedupgenie

Option 2 — Download and run directly

git clone https://github.com/lemarcgagnon/DuplicateFinder.git
cd DuplicateFinder
pip install -r requirements.txt
python3 app.py

Linux note

On some distributions, you may need system packages for Qt:

# Ubuntu / Debian
sudo apt install python3-pyqt5

# Fedora
sudo dnf install python3-qt5

No additional system packages needed.

Usage

  1. Set target directory — Type a path or click Browse...
  2. Choose sensitivity — Strict (exact), Balanced (fast), or Fuzzy (similar content)
  3. Click Analyze — The scan runs in the background with a progress indicator
  4. Review results — Click a folder on the left to see its files on the right. Duplicates are listed with their copies as child items.
  5. Compare — Click any file to see a side-by-side comparison in the bottom panel
  6. Clean up — Use Select duplicatesQuarantine selected, or let Auto-clean duplicates handle it automatically

How detection works

Strict / Balanced:
  file size → first 4KB → last 4KB → full SHA-256 (Strict only)
  Each stage eliminates non-candidates before reading more data.

Fuzzy:
  tokenize text (or byte n-grams for binary)
  → 64-bit SimHash from shingle hashes
  → 8 LSH bands of 8 bits each
  Files sharing any band are candidate duplicates (~85%+ similarity threshold).

Project structure

DedupGenie/
├── app.py              # Algorithms, UI, and logic (single-file app)
├── translations.py     # i18n strings (6 languages)
├── pyproject.toml      # Package metadata (pip install)
├── setup.py            # Fallback for older pip
├── requirements.txt    # Python dependencies (PyQt5)
├── app.log             # Runtime warnings (created on first run)
└── README.md

Safety & Disclaimer

Back up your data before using this tool. Always keep a copy of important files before running any cleanup operation.

Several safeguards are built in to prevent accidental data loss:

  • Every destructive action requires an explicit confirmation dialog.
  • Files are quarantined (moved to _FORENSIC_QUARANTINE/) before permanent deletion — you can review and restore them at any time.
  • The auto-clean wizard never deletes files directly; it only moves copies to quarantine.
  • No file is ever touched without user-initiated action.

That said, no software is infallible. Depending on your operating system and configuration, deleted files may still be recoverable from your trash or recycle bin. However, this is not guaranteed.

This software is provided "as is", without warranty of any kind, express or implied. The authors are not responsible for any data loss resulting from the use of this tool. You use it entirely at your own risk.

Security audit

This codebase has been scanned before publication using industry-standard security tools:

  • Bandit (static analysis for Python) — 0 issues. Six informational findings related to subprocess usage were reviewed and confirmed safe: all calls use list arguments (no shell interpolation) and operate on user-selected paths within the app.
  • pip-audit (dependency vulnerability scanner) — 0 known vulnerabilities in project dependencies (PyQt5).

You can re-run these audits yourself at any time:

pip install bandit pip-audit
bandit -r app.py
pip-audit -r requirements.txt

Credits

Created by Marc Gagnon (marcgagnon.ca) with Gemini and Claude.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dedupgenie-1.2.1.tar.gz (33.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dedupgenie-1.2.1-py3-none-any.whl (31.3 kB view details)

Uploaded Python 3

File details

Details for the file dedupgenie-1.2.1.tar.gz.

File metadata

  • Download URL: dedupgenie-1.2.1.tar.gz
  • Upload date:
  • Size: 33.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for dedupgenie-1.2.1.tar.gz
Algorithm Hash digest
SHA256 a3230507e985be8a127085998736f92165b0c16a5021aa1d95dcfb1f035ff951
MD5 8679773267d4f2d7fb50fd8943d1cfc6
BLAKE2b-256 1e39be8b85abebdcc5271aff248af99e0272822b768f2a44959210d6e1dfee3a

See more details on using hashes here.

File details

Details for the file dedupgenie-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: dedupgenie-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 31.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for dedupgenie-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2219824df1136ae21c2406d312987a2cef66f9c18b9e3344bd169c273f5de37a
MD5 98a5809cffe6f21330bddcac3e856ce9
BLAKE2b-256 73402f0ac247815cdc6fe1831ca322130fff2e74d3aa3b895f140445b7490500

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page