Skip to main content
Help us improve Python packaging – donate today!

Find duplicate files and perform action.

Project Description

sweeper

Find duplicate files and perform action.

Usage

Print duplicates

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

Remove duplicate files

from sweeper import Sweeper
swp = Sweeper(['images1', 'images2'])
swp.rm()

Perform custom action

from sweeper import Sweeper
swp = Sweeper(['images'])
for f, h, dups in swp:
    print('encountered {} which duplicates with already found duplicate files {} with hash {}'.format(f, dups, h))

As script:

python -m sweeper/sweeper --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, Python3

Release history Release notifications

This version
History Node

0.9.0

History Node

0.5.0

History Node

0.4.0

History Node

0.3.0

History Node

0.2.0

History Node

0.1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
sweeper-0.9.0.tar.gz (6.3 kB) Copy SHA256 hash SHA256 Source None Aug 9, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page