Find and remove duplicate files safely with undo capability
Project description
dupeSweep - Python Package
Find and remove duplicate files safely with undo capability.
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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1189443cf5e68f0a1332d97940b5ef186f8587a1359003828ca7c8b8e8be5111
|
|
| MD5 |
f999fd4e4f32012dac159fd386970a73
|
|
| BLAKE2b-256 |
190f98850e08a314e4b1c65cbde8bc5f87a904be91375b9b08937550889d0ab9
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fde93e67fc3bc21199845a54f050142e03a1c903f71580269395444564aa21df
|
|
| MD5 |
105205210c4e18b92dbebef4594708ae
|
|
| BLAKE2b-256 |
41b22fc6a0afb83f8e081c35c6aca1161b9839a78a661cf5089787bdf8309400
|