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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file uniquipy-1.1.0.tar.gz.

File metadata

  • Download URL: uniquipy-1.1.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for uniquipy-1.1.0.tar.gz
Algorithm Hash digest
SHA256 68abe86e02a6493826e628066af4a58fe3ee4cbc1af94b3f06dd71aa20b79598
MD5 c463e25f5b62415fef46d3dcec66203f
BLAKE2b-256 3501b3763323d2da9ebd8fa529ff4c6c23be1068a2a445c85832a72ea9729da7

See more details on using hashes here.

File details

Details for the file uniquipy-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: uniquipy-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for uniquipy-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b049f75fd80bb3583f545a90c2ab2546e9e492e529d96b43d5ef8923b775cab
MD5 259782ab2cfb43b3582363584649b212
BLAKE2b-256 80cf0fcc9d3a610686f3330acd8e78cfb2ee4d3faf672e60aff48294c099c92c

See more details on using hashes here.

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