Skip to main content

CLI tool to organize RAW photos by matching JPEG counterparts

Project description

RawFinder - Find a corresponded raw file

RawFinder is a Python tool to help photographers and image processors locate and manage RAW files corresponding to JPEG images. It efficiently scans directories, searches for matching RAW files, and moves them to a specified location.

Installation

Install via pipx:

$ pipx install rawfinder

How to use

$ rawfinder

Usage: rawfinder [OPTIONS] COMMAND [ARGS]...

  RAW Photo Organizer CLI Tool

Options:
  --verbose              Enable debug output
  --config PATH          Custom config file path
  --handler-type [rich]  Type of logging handler (rich for colorful output,
                         default for standard)
  --log-file PATH        Path to file where logs will be written
  --help                 Show this message and exit.

Commands:
  process  Organize RAW photos by matching them with JPEG counterparts.
  config   Manage application configuration

   poetry run rawfinder config                                                                                                             [.venv] vit@Vitaliis-MacBook-Air
$ rawfinder config
Usage: rawfinder config [OPTIONS] COMMAND [ARGS]...

  Manage application configuration

Options:
  --help  Show this message and exit.

Commands:
  init      Initialize configuration file
  path      Show config file location
  edit      Edit config file in default editor
  delete    Delete config file
  validate  Validate current configuration
$ rawfinder process
Usage: rawfinder process [OPTIONS] PHOTOS_DIR SOURCES_DIR DEST_DIR

  Organize RAW photos by matching them with JPEG counterparts.

  PHOTOS_DIR - directory with photos (JPEG files)

  SOURCES_DIR - directory with sources files (RAW files)

  DEST_DIR - destination directory for sources (RAW files matched with JPEGs)

  Note: Global options like --verbose, --config, --handler-type, and --log-
  file can also be used.

  Use `--log-file PATH` to write logs to a file. Run `rawfinder --help` for
  details on global options.

Options:
  --overwrite
  --dry-run                       Simulate operations without actual changes
  --reporter [rich|plain]         Progress reporting style
  --verify-checksum STR_TO_BOOL   Verify checksums of copied files
  --verify-checksum-chunk-size INTEGER
                                  Chunk size for verifying checksums
  --photos-extensions TEXT        Custom photos file extensions (e.g.,
                                  --photos-extensions .bmp --photos-extensions
                                  .png)
  --sources-extensions TEXT       Custom source file extensions (e.g.,
                                  --sources-extensions .tiff --sources-
                                  extensions .pdf)
  --help                          Show this message and exit.

Example

Find raw files in ~/Pictures/raw folder for jpeg files in current folder, copy them to raw folder inside current folder (name by default):

$ rawfinder . ~/Pictures/raw ./raw

Development

Install

$ make install

Tests

$ make test

Linters

$ make check

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

rawfinder-0.3.3.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

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

rawfinder-0.3.3-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file rawfinder-0.3.3.tar.gz.

File metadata

  • Download URL: rawfinder-0.3.3.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.11 Linux/6.8.0-1021-azure

File hashes

Hashes for rawfinder-0.3.3.tar.gz
Algorithm Hash digest
SHA256 b804e65fe394b9495d2939cc4ce4e180a5c4f3d2acb70d233a5005be887c32a1
MD5 7ef730ea66f18debb90283c91924f1de
BLAKE2b-256 3d53d9c1029d4c9ba0e592209f62978371af11115152b67366d89a0af625c750

See more details on using hashes here.

File details

Details for the file rawfinder-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: rawfinder-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.11 Linux/6.8.0-1021-azure

File hashes

Hashes for rawfinder-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f6d859ae1b21a1722696c8655aa9ea91b9e6c1a39ee7a02cba14b13edd6bbd49
MD5 a386cd85ccd3d1452059e9613f5317b3
BLAKE2b-256 9d28a0aacc1e887156f37b3e20f0a3b61a6e872b793c2e65fd890b01e4fe1700

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