Skip to main content

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

Metadata

Release files for sweeper 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sweeper 0.9.0
File Size Uploaded Provenance Actions
sweeper-0.9.0.tar.gz 6.3 kB Without provenance Details for sweeper-0.9.0.tar.gz

Release files / sweeper-0.9.0.tar.gz

Download URL sweeper-0.9.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
21b7de2309e901bc6bb785f5d3cf62c0f51f5b54eaacb0ea5e2fd923420c6df2
BLAKE2b-256 checksum
How to use checksums
17f0705c6957d0961ef7f5a1ae098f639da6f5af29088f3435b73c83e26d52db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for sweeper 0.9.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page