Skip to main content

DUPLICATE-DETECTOR

Functions:

$ python -m duplicate-detector [compare|sort]

Compare :

$ python -m duplicate-detector compare INPUT_DIR TARGET

Scan both directories (INPUT-DIR and TARGET). Compares the files solely on FILE NAME. Every file found in both directories are moved from their originals paths in INPUT-DIR into INPUT-DIR/DUPLICATES.

Files in the TARGET directory are never moved.

sort:

$ python -m duplicate-detector sort INPUT_DIR OUTPUT_DIR

Sort a directory INPUT-DIR of pictures and videos ('JPG', 'JPEG', 'PNG', 'MP4', 'MOV') into an OUTPUT-DIR. Files in OUTPUT-DIR are sorted into folders by year and month, based on their metadata, as following : OUTPUT-DIR/YEAR/MONTH/pictures.

If multiple file have the same file name, the heaviest get sorted into OUTPUT-DIR/YEAR/MONTH and the others into OUTPUT-DIR/DUPLICATES.

If no metadata is found for a file, it is not moved. If a file is not in the supported extensions, it is not moved.

Installation:

For ubuntu:

Install python3.8 , and required librairies:

Without virtual env:

$ sudo python3.8 -m pip install -r requirements.txt

With virtual env:

$ virtualenv venv -p /usr/bin/python3.8
$ source venv/bin/activate
$ python -m pip install -r requirements.txt

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

duplicate_detector-0.0.7.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

duplicate_detector-0.0.7-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file duplicate_detector-0.0.7.tar.gz.

File metadata

  • Download URL: duplicate_detector-0.0.7.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for duplicate_detector-0.0.7.tar.gz
Algorithm Hash digest
SHA256 d30da5ecc85f87e6565af0f8f10c41728d898eebb0ddd0f266519f4bacc30ee7
MD5 0e5b22e0d7b0dfcd2f9306c4f2124332
BLAKE2b-256 cedb6414cc01731f061de5bedcb81ea68ec1b549445e83c4a4233aa6d662bfb8

See more details on using hashes here.

File details

Details for the file duplicate_detector-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: duplicate_detector-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for duplicate_detector-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9b18b8218052d9e08955f8b6000080a4b1c8543d3ddcffe612e8c773b53728af
MD5 00d8b099a3ab0a7da3fa8be79dfe92c1
BLAKE2b-256 9e131e9cf730e763c61e65af744a16c2f9d413940ed71382f583af2441a6e959

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 files

0.0.6

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page