Skip to main content

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.

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)
├── 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.1.0.tar.gz (32.9 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.1.0-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dedupgenie-1.1.0.tar.gz
Algorithm Hash digest
SHA256 8eba0c7bfa17fbb967ecaf72f5c329e8250cc0fd80c9564d760b578efe7f3f15
MD5 17dae6179144401f04687bdb85b9dd4d
BLAKE2b-256 188371dca3042987713ae84ec28d3ad6c0d61853814daa48732f1a2142732c15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dedupgenie-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 31.1 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dbf8b61cd88ef46889ea8a86f5a2e8de67c9d0f8fc6e08813b5cfa02be593006
MD5 a774ee31fcaaa1a97c29b02a6bd13408
BLAKE2b-256 d079d16b8403e16d3e0c3fec259fe01d0d79d265223514b40e02c6981ddc1ef6

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