Skip to main content

python cli-tool to find and handle file duplicates

Project description

Tests

uniquipy

Minimal python cli-tool to find and handle file duplicates in a directory based on file hashes.

Installation

Simply clone this repository and install using pip, i.e., in the repository's root directory, run

pip install .

It is recommended to install this package only to a virtual environment. (Create with python3 -m venv venv and activate an existing environment via source venv/bin/activate.)

Usage

Run uniquipy -h to get usage information in the terminal. Use the verbose-option (-v) in below commands to get progress indicators and verbose feedback on results. In the following, optional arguments are given in the form of [...].

In order to analyze a directory, run

uniquipy analyze -i <dir> [-m md5|sha1|sha256|sha512] [-v]

A directory can be transformed into a format where only single copies/unique files are stored explicitly (along with information on how to reconstruct the original source). To perform this transformation, use

uniquipy pack -i <dir> -o <dir> [-m md5|sha1|sha256|sha512] [-v]

In order to revert the pack-command, run

uniquipy unpack -i <dir> -o <dir> [-v]

The input directory (-i) expects a directory containing an index.txt-file and a data/-directory (as generated previously using uniquipy pack ..).

Project details


Download files

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

Source Distribution

uniquipy-1.1.0.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

uniquipy-1.1.0-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page