Skip to main content

Find and remove duplicate files safely with undo capability

Project description

dupeSweep - Python Package

Find and remove duplicate files safely with undo capability.

PyPI version Python Support License: MIT


Installation

From PyPI (Recommended)

pip install dupesweep

From Source

git clone https://github.com/larryste1/dupesweep.git
cd dupesweep/python
pip install .

Development Installation

pip install -e ".[dev]"

Quick Start

GUI Mode (Default)

dupesweep

CLI Mode

# Scan a directory
dupesweep scan ~/Downloads

# Remove files (with confirmation)
dupesweep remove file1.txt file2.txt

# Undo last operation
dupesweep undo

# Check operation history
dupesweep status

# Show help
dupesweep help

Features

  • 🔍 SHA256 Content Hashing - Full file hashing for accurate duplicate detection
  • 🛡️ Safe Operations - Files moved to trash with collision-resistant naming
  • ↩️ Undo Support - Restore files from any operation with verification
  • 📊 Statistics - See wasted space and duplicate counts
  • 🖥️ GUI + CLI - Graphical and command-line interfaces
  • Two-Phase Hashing - Quick hash first, full hash on collision
  • 🧹 OS Junk Filtering - Automatically skips .DS_Store, Thumbs.db, etc.

Requirements

  • Python: 3.7 or higher
  • tkinter: Usually included with Python (for GUI mode)
  • No external dependencies!

Usage Examples

Find Duplicates

# Scan home directory
dupesweep scan ~

# Scan specific folder
dupesweep scan /path/to/folder

# Scan with progress indicator
dupesweep scan /large/directory

Remove Duplicates

# Interactive GUI (recommended)
dupesweep

# CLI removal with confirmation
dupesweep remove /path/to/file1.txt /path/to/file2.txt

Undo Operations

# Undo last batch
dupesweep undo

# View operation history
dupesweep status

Testing

# Install test dependencies
pip install ".[dev]"

# Run tests
pytest tests/ -v

# Run with coverage
pytest tests/ --cov=python --cov-report=html

License

MIT License - See LICENSE file for details.


Support

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

dupesweep-1.0.0.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

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

dupesweep-1.0.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file dupesweep-1.0.0.tar.gz.

File metadata

  • Download URL: dupesweep-1.0.0.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for dupesweep-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1189443cf5e68f0a1332d97940b5ef186f8587a1359003828ca7c8b8e8be5111
MD5 f999fd4e4f32012dac159fd386970a73
BLAKE2b-256 190f98850e08a314e4b1c65cbde8bc5f87a904be91375b9b08937550889d0ab9

See more details on using hashes here.

File details

Details for the file dupesweep-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: dupesweep-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for dupesweep-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fde93e67fc3bc21199845a54f050142e03a1c903f71580269395444564aa21df
MD5 105205210c4e18b92dbebef4594708ae
BLAKE2b-256 41b22fc6a0afb83f8e081c35c6aca1161b9839a78a661cf5089787bdf8309400

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