Skip to main content

Find duplicate files and perform action.

Project description

sweeper

Find duplicate files and perform action.

Usage

Print duplicates

from sweeper import file_dups
dups = file_dups(['images1', 'images2'])
print(dups)

Remove duplicate files

from sweeper import rm_file_dups
rm_file_dups(['images'])

Perform custom action

from sweeper import iter_file_dups
for files in iter_file_dups(['images']):
    for fname in files:
        print('found duplicate file with name: %s' % fname)

As script:

python sweeper.py --help

As installed console script:

sweeper --help

Installation

from source:

python setup.py install

or from PyPI:

pip install sweeper

Documentation

this README.rst, code itself, docstrings

sweeper can be found on github.com at:

https://github.com/darko-poljak/sweeper

Tested With

Python2.7.6, Python3.3.3

Project details


Download files

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

Source Distributions

sweeper-0.3.0.tar.gz (3.8 kB view details)

Uploaded Source

sweeper-0.2.0.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file sweeper-0.3.0.tar.gz.

File metadata

  • Download URL: sweeper-0.3.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sweeper-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d0c457fa14aea26b9488aa245548254e6d6bdb006624915149558ddccba003a1
MD5 13a53c526d5c820a15d49938d8e888df
BLAKE2b-256 7e2fa42834c5cd1f7ad2d7768883fb62866721d8d62c909e68a0ce939d961cfa

See more details on using hashes here.

File details

Details for the file sweeper-0.2.0.tar.gz.

File metadata

  • Download URL: sweeper-0.2.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sweeper-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e2be50b81971d26d31ac706927901c4784ca9e8420a59fd181f622c184b3784f
MD5 5e07b14c3ac8a544c83a16ccae8cdf1b
BLAKE2b-256 b266cd110c2d4f874980e4cf04fc321c1a80f292c221d3226901d2125cfed2e4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page