Skip to main content

Duple is a CLI that finds and removes duplicate files.

Project description

Project Description

Duple is a small package that will find and remove duplicate files. I created duple only because there is no port of rmlint to Windows. I suggest using rmlint on unix/linux systems instead - it is far superior to duple.

Duple will iterate through all files and directories that is given and calculate a hash value, hash can be specified. Then, it groups all of those results into a dictionary with the hashes as the key. Dictionary entries with 2 or more values constitute a duplicate. The duplicate that will be kept is specified with an optional flag. To see the flags and their descriptions:

duple scan --help

Once the scan is complete, you can review the output file (duple.delete) and modify at your discretion. Once you have reviewed and modified, run the following command to send the duplicates to the trash:

duple rm

Installation

pip install duple

Usage

duple has two sub-commands: scan and rm. Scan scans your system based on the arguments given to scan and reports those results in output files reported by duple scan.

An Example:

The command below will scan the currenty directory and calculate duple scan -d . 'sha256'

-d : specifies the duplicate resolution behavior, in this case, duple will keep the duplicate with the lowest filesystem depth. . : specifies the current directory, to be scanned 'sha256': specifies the hash function to use when duple calculates hashes to determine if files are duplicates

Version History

0.1.0 Initial Release

This is the initial release of duple

0.1.1 Misc. Fixes

-Fixed typos in help strings -Added support for sending duplicates to trash ('duple rm')

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

duple-0.1.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

duple-0.1.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file duple-0.1.1.tar.gz.

File metadata

  • Download URL: duple-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/23.5.0

File hashes

Hashes for duple-0.1.1.tar.gz
Algorithm Hash digest
SHA256 66fd986efabbf81838ba483acbe50ce072851002248a19ba7f607e024aa9266b
MD5 93aef8198076830293531aaa382d148c
BLAKE2b-256 82f8b333a249105a750574a3c7b5445c94e0934fc5989d7a708b9963f2a43563

See more details on using hashes here.

File details

Details for the file duple-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: duple-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/23.5.0

File hashes

Hashes for duple-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a652ddf3e6525f214fc25ff12466db0b05f621bbd1d5f3c71962ac5da633585e
MD5 1feed78fc3495cb04f5f41c16267fc91
BLAKE2b-256 f9e1dea7fda08bf29d5478bdfbea5083a6eb649045cca18cbac2172f9d57a05e

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