Getting started
Requirements
- Python 3.13 or newer
- MediaInfo for embedded video timestamps (system package; names vary by OS)
Install from PyPI
Using a virtual environment is recommended:
On Windows, activate with .venv\Scripts\activate.
Install from a checkout
git clone https://github.com/lupaxa-miscellaneous-toolbox/photo-renamer.git
cd photo-renamer
python -m venv .venv
source .venv/bin/activate
python -m pip install -e .
For tests, linting, type checking, and documentation:
First run
Always preview first:
The command prints a Rich startup panel and summary without creating files. When
the plan looks correct, drop --dry-run:
Results land under ~/Pictures/renamed/ and originals stay in place.
Supported formats
| Kind | Extensions |
|---|---|
| Images | jpg, jpeg, png, heic, heif, webp, tif, tiff |
| Videos | mp4, mov, avi, mkv, m4v, 3gp |
Matching is case-insensitive. --include and --exclude filter this supported
set; they do not enable arbitrary formats.
Development checks
Documentation source lives in mkdocs/ (docs_dir: mkdocs in mkdocs.yml),
not docs/, so GitHub’s special /docs path is unused. Serve with:
The project is MIT-licensed; the canonical text is the repository file named
LICENSE.