Metadata-Version: 2.4
Name: dupegun
Version: 1.0.1
Summary: Cross-platform duplicate file finder and cleaner
Author-email: Prasanna B <prasannab806@gmail.com>
License: MIT License
        
        Copyright (c) 2025 Prasanna B
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Project-URL: Homepage, https://github.com/Prasanna-Balakrishnan/dupegun
Project-URL: Repository, https://github.com/Prasanna-Balakrishnan/dupegun
Project-URL: Bug Tracker, https://github.com/Prasanna-Balakrishnan/dupegun/issues
Keywords: duplicate,files,cli,disk,cleaner,cross-platform
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Environment :: Console
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: rich>=13.0
Requires-Dist: click>=8.0
Dynamic: license-file

# dupegun

Fast cross-platform duplicate file finder and cleaner for Windows, Linux and macOS.

## Install

```bash
pip install dupegun
```

## Commands

```bash
# Find duplicates
dupegun scan ~/Downloads

# Skip files under 1 MB
dupegun scan ~/Downloads --min-size 1000000

# Scan multiple folders
dupegun scan ~/Downloads ~/Documents ~/Desktop

# Export to JSON
dupegun scan ~/Downloads --json results.json

# Export to CSV
dupegun scan ~/Downloads --csv results.csv

# Preview what would be deleted (safe)
dupegun delete ~/Downloads --strategy newest

# Actually delete
dupegun delete ~/Downloads --strategy newest --no-dry-run

# Confirm each group before deleting
dupegun delete ~/Downloads --no-dry-run --interactive

# Move duplicates to quarantine
dupegun move ~/Downloads --dest ~/quarantine --no-dry-run

# Replace duplicates with hard links
dupegun hardlink ~/Downloads --no-dry-run
```

## Strategies

| Flag | Keeps |
|---|---|
| `--strategy shortest` | Shortest file path (default) |
| `--strategy newest` | Most recently modified copy |
| `--strategy oldest` | Oldest copy |

## Features

- Works on Windows, Linux, macOS
- All file types supported
- 3-pass engine (size → partial hash → full SHA-256)
- Colored terminal output
- Dry-run on by default (safe)
- JSON and CSV export
- Hard link support

## License

MIT
