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.0.tar.gz (33.2 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.0-py3-none-any.whl (31.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dedupgenie-1.2.0.tar.gz
  • Upload date:
  • Size: 33.2 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.0.tar.gz
Algorithm Hash digest
SHA256 9801c7f5b1ecdd8d6b82da2dc519c827e6ed47622ea932be375c3b53dab0fccf
MD5 3acace57e20c9a29110d66353327bfe6
BLAKE2b-256 f60be6636e9a018b2a1a34ad0cb4cba5c78923136b5c2d975bcfb20e32065269

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dedupgenie-1.2.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48753fffd522993a1f83aa209dcd8a09a92cea9e3781868e215619ce2fc93cc1
MD5 41c7d281a1a3a58dd85ee8a8f5150f1e
BLAKE2b-256 91d2f23679bfa7a1b2d717da487145e2931b4c8289487f9c39fd964d7e8517f7

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