Skip to main content

Project Logo

The Lupaxa Miscellaneous Toolbox
Part of The Lupaxa Project


lupaxa-photo-renamer

Safely copy or move photographs and videos into consistent date-based filenames. Reads image EXIF or video metadata when available, falls back to filesystem modification time, detects common source apps, and reports progress with Rich.

Built for media libraries used by The Lupaxa Project.

Features

  • Date-based filenames from EXIF, video metadata, or filesystem mtime
  • Copy by default; --move only when you intend to remove sources
  • --dry-run plans and reports without writing files or logs
  • Never overwrites: collisions get _001, _002, and so on
  • Optional source labels in names (datetime, source, source-first)
  • Optional organise / flatten layout for detected sources
  • Concurrent copy/move workers and a tab-separated audit log
  • Fully typed, linted, formatted, and tested
  • MkDocs documentation included

Installation

From PyPI

pip install lupaxa-photo-renamer

From source (development mode)

pip install -e ".[dev]"

The console command is photo-renamer.

Video timestamp extraction uses MediaInfo. If it is unavailable on your system, install the MediaInfo package with your operating system's package manager (brew install mediainfo on macOS or apt install mediainfo on Debian/Ubuntu). auto still falls back to filesystem mtime.

CLI quick start

photo-renamer --help
photo-renamer --dry-run --recursive ~/Pictures
photo-renamer --recursive ~/Pictures
photo-renamer --recursive --format source ~/Pictures
photo-renamer --recursive --organise ~/Pictures
photo-renamer --recursive --output /Volumes/Archive --move ~/Pictures

By default, files are copied and results are written below PATH/renamed/. Existing relative directories are preserved:

Pictures/holiday/day-1/IMG-20260801-WA0001.JPG
→ Pictures/renamed/holiday/day-1/2026-08-01_14-55-22.jpg

Requirements

  • Python 3.13+
  • Runtime dependencies: rich, Pillow, pillow-heif, platformdirs, pymediainfo
  • System MediaInfo for video timestamps (optional; mtime fallback remains)

Documentation

Online documentation:

Documentation

Source repository:

GitHub

Serve docs locally

From a clone of the repository:

make mkdocs-serve

Then open the local URL printed by MkDocs in your browser.

Development

Clone the repository and install with Make:

make init                # first-time makefile-skills checkout
make python-install-dev  # editable install with [dev]
make python-check        # lint, type-check, and test
The Lupaxa Project Footer

Metadata

Release files for lupaxa-photo-renamer 0.1.3

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

Source distribution (sdist)

Source distribution for lupaxa-photo-renamer 0.1.3
File Size Uploaded
lupaxa_photo_renamer-0.1.3.tar.gz 18.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lupaxa-photo-renamer 0.1.3
File Interpreter ABI Platform
lupaxa_photo_renamer-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 39.7 kB

Release files / lupaxa_photo_renamer-0.1.3.tar.gz

Download URL lupaxa_photo_renamer-0.1.3.tar.gz
Size 18.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e5e5ac2427c05073ec37fd964a49e972a4cdaee8193b885280ff807f4b8f6297
BLAKE2b-256 checksum
How to use checksums
c87e601f12a966d0753a7dda94884d61fe815bef2af9f33257f8542be9831d0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release files / lupaxa_photo_renamer-0.1.3-py3-none-any.whl

Download URL lupaxa_photo_renamer-0.1.3-py3-none-any.whl
Size 21.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39fb2778e8921a572004428c24c0ff60bc262810290fcfae15edf680825c2120
BLAKE2b-256 checksum
How to use checksums
730517a1bfe5abed94522e706206f388310ae585e3fe9fc7055685546250e832
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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