Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
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 History

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 Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
sweeper-0.9.0.tar.gz (6.3 kB) Copy SHA256 Checksum SHA256 Source Aug 9, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting