Find duplicate files and perform action.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Darko Poljak 0c04f67b93 Rewriten as class Sweeper with code improvements and optimizations. 8 years ago
sweeper Rewriten as class Sweeper with code improvements and optimizations. 8 years ago
test Rewriten as class Sweeper with code improvements and optimizations. 8 years ago
.gitignore add ignore entries 8 years ago
AUTHORS update authors file 8 years ago
LICENSE Initial commit 8 years ago
README.rst Rewriten as class Sweeper with code improvements and optimizations. 8 years ago
TODO Rewriten as class Sweeper with code improvements and optimizations. 8 years ago
setup.py use __version__ from sweeper.py 8 years ago

README.rst

sweeper
=======

Find duplicate files and perform action.

Usage
=====

Print duplicates

.. code:: python

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

Remove duplicate files

.. code:: python

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

Perform custom action

.. code:: python

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