Find duplicate files and perform action.
Go to file
Darko Poljak 0c04f67b93 Rewriten as class Sweeper with code improvements and optimizations. 2014-08-10 00:06:32 +02:00
sweeper Rewriten as class Sweeper with code improvements and optimizations. 2014-08-10 00:06:32 +02:00
test Rewriten as class Sweeper with code improvements and optimizations. 2014-08-10 00:06:32 +02:00
.gitignore add ignore entries 2014-02-07 19:21:33 +01:00
AUTHORS update authors file 2014-02-07 19:21:11 +01:00
LICENSE Initial commit 2014-01-26 22:21:28 -08:00
README.rst Rewriten as class Sweeper with code improvements and optimizations. 2014-08-10 00:06:32 +02:00
TODO Rewriten as class Sweeper with code improvements and optimizations. 2014-08-10 00:06:32 +02:00
setup.py use __version__ from sweeper.py 2014-02-06 14:05:24 +01:00

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