Skip to main content

CLI wrapper around czkawka_cli for duplicate media workflows

Project description

czk

A CLI wrapper around czkawka_cli focused on usability and easier analysis of duplicate images and videos.

Features

  • Dry-run and live deletion modes with colorized, grouped terminal output
  • CSV and JSON reports per run
  • Interactive SQL analysis via DuckDB
  • Self-contained HTML visual report with inline image/video previews, search, and pagination

Requirements

  • macOS or Linux
  • czkawka_cli — duplicate detection engine
  • duckdb CLI — required for czk analyze
  • Python + uv

Installation

# From PyPI (recommended)
uv tool install czk-tool
# or with pip
pip install czk-tool

# From source
uv tool install --editable .

Usage

czk test <directory>      # Dry run — scan for duplicates, no deletion
czk execute <directory>   # Delete duplicates (AEB strategy)
czk analyze <directory>   # Interactive DuckDB SQL session over scan results
czk viz <directory>       # Generate a self-contained HTML visual report

czk check is an alias for czk test; czk analyse is an alias for czk analyze.

Options

Flag Description
--media {both,images,videos} Media type to scan (default: both)
-s, --similarity-preset Image similarity preset: Original, VeryHigh, High, Medium, Small, VerySmall, Minimal (default: High)
-c, --hash-size {8,16,32,64} Perceptual hash size for images (default: 32)
-g, --hash-alg Hash algorithm for images: Mean, Gradient, Blockhash, VertGradient, DoubleGradient, Median (default: Gradient)
-z, --image-filter Resize filter for images: Lanczos3, Nearest, Triangle, Faussian, Catmullrom (default: Nearest)
-t, --tolerance 0..20 Similarity tolerance for videos (default: 10)
--top N Limit duplicate groups in previews (default: 50)
--all Show all duplicate groups, overrides --top
--out-dir <path> Output directory (default: <system-temp>/czk-reports)
--no-color Disable colored output

Output

Each run writes timestamped artifacts to the output directory:

  • <base>-<media>-<YYYYMMDD-HHMMSS>.json
  • <base>-<media>-<YYYYMMDD-HHMMSS>.csv
  • <base>-viz-<YYYYMMDD-HHMMSS>.html (czk viz only)

CSV columns: index, file_to_keep, files_to_remove, count

Disclaimer

Parts of this project were assisted by AI tooling. Review all commands carefully before running, especially deletion workflows. This software is provided "as is" without warranties of any kind. The authors are not liable for any data loss or other damages resulting from use.

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

czk_tool-1.0.9.tar.gz (36.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

czk_tool-1.0.9-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

Details for the file czk_tool-1.0.9.tar.gz.

File metadata

  • Download URL: czk_tool-1.0.9.tar.gz
  • Upload date:
  • Size: 36.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for czk_tool-1.0.9.tar.gz
Algorithm Hash digest
SHA256 96c6faa05a5a7eb0686d1b149c4caf631dbc9337b1f47aff24e11c659f9d7599
MD5 e6c809363790ea4fd9a5df8da1b37d86
BLAKE2b-256 14d1fce0d461eae77c76b54fba721685dc0de9736bb6a753f3c07234a28e6c94

See more details on using hashes here.

File details

Details for the file czk_tool-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: czk_tool-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 30.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for czk_tool-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 0e720662a805afd1b78ddbc54e6e3ea8a643102558b46c475d31a1d611a7ad82
MD5 72b006ec6bf0f457d6f07b2c284eec45
BLAKE2b-256 2d3d196638e149e5df5925df6af394e448d2d8701c1337c71e73871dedd9f120

See more details on using hashes here.

Supported by

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