Local desktop tool for organizing, syncing, indexing, and reviewing photos.
Project description
Photo Manager Pro
Photo Manager Pro is a local desktop tool for organizing photos and videos. It has a PySide6 GUI, one-shot sync, background folder watching, blur detection, a local SQLite index, duplicate review, and safe cleanup tools.
The project is currently alpha. The main workflow works, but distribution still needs clean-machine testing, more service-mode hardening, and better automated GUI checks.
What Works
- Sort files from a source folder into year-based folders.
- Detect dates from EXIF, filename patterns like
20210924_132556.jpg, thenmtimeorctime. - Copy files with verification by fast fingerprint or full SHA256.
- Optionally delete source files after successful synchronization.
- Background sync mode powered by
watchdog. - CSV synchronization log and dashboard sync report export.
- Blur scanning with OpenCV.
- Local SQLite metadata index for files, sync events, blur scores, and AI metadata.
- Automatic background sync after app launch.
- Optional app startup on Windows login.
- Single-instance startup guard, so reopening the app focuses the existing process instead of creating another tray icon.
- Headless runner and Windows Service commands.
- Dashboard with library totals, year counts, top folders, sync errors, and recent events.
- Thumbnail gallery with cached thumbnails, filters, preview, and text/tag search.
- Duplicate review tab that scans by content hash, supports scan cancellation, and queues removals for review.
- Safe Delete Queue with cancel, CSV export, and recycle-bin deletion.
- Local Light AI pass for rough tags, captions, optional OCR, and search.
Running From Source
py -m pip install -r requirements.txt
py photo_manager_gui.py
photo_manager_gui.py is just the launcher. The main GUI lives in photo_manager_qt.py.
After the first PyPI release, installation should look like this:
python -m pip install photosync-tool
photo-manager-pro
Project Layout
photo_manager_core.py Core sync, date detection, copy, and file helpers
photo_manager_features.py Gallery, delete queue, duplicate review, and AI helpers
photo_manager_index.py SQLite library index and related commands
photo_manager_qt.py Main PySide6 desktop interface
photo_manager_service.py Headless runner and Windows Service entry point
blur_tool.py Blur detection workflow
sort_photos_script.py Legacy/simple CLI sorter
tests/ Pytest coverage for core workflows
docs/ GitHub Pages site and screenshots
installer/ Inno Setup installer definition
Configuration
User settings are stored outside the repository/application folder.
On Windows, the default config path is:
%APPDATA%\PhotoManagerPro\photo_manager_config.json
The headless service uses the same default config path, and writes its log to:
%APPDATA%\PhotoManagerPro\photo_manager_service.log
If an old photo_manager_config.json exists next to the source files, the GUI can still read it as a legacy fallback. New saves go to the AppData location.
Windows EXE
The Windows distribution target is PhotoManagerPro.exe. The GitHub release workflow builds it with PyInstaller, uploads it as an artifact, and attaches it to GitHub Releases.
Local build:
py -m pip install --upgrade ".[exe]"
pyinstaller --noconfirm --onefile --windowed --name PhotoManagerPro --icon photosync_tool_assets/photo_manager_icon.ico --add-data "photosync_tool_assets;photosync_tool_assets" photo_manager_gui.py
The executable is written to dist/PhotoManagerPro.exe. build/ and dist/ are build outputs and should not be committed.
Release Build Script
The Bash release script builds the local release set:
- Python source/wheel distributions for PyPI in
dist/, dist/PhotoManagerPro.exe,release/PhotoManagerProSetup-<version>.exewhen Inno Setupisccis available.
PYTHON=py scripts/build_release.sh
Run it from Git Bash, WSL, or another Bash environment.
Publishing to PyPI is opt-in:
PYTHON=py scripts/build_release.sh --upload-pypi
Windows Installer
An Inno Setup script is available at installer/PhotoManagerPro.iss. It packages the built executable into a regular Windows installer.
Build order:
py -m pip install --upgrade ".[exe]"
pyinstaller --noconfirm --onefile --windowed --name PhotoManagerPro --icon photosync_tool_assets/photo_manager_icon.ico --add-data "photosync_tool_assets;photosync_tool_assets" photo_manager_gui.py
iscc installer\PhotoManagerPro.iss
The installer output is written to release/.
Tests
py -m pip install -e ".[dev]"
py -m ruff check .
py -m pytest
The current tests cover date parsing, copy verification, safe destination naming, media filtering, sync schedule logic, duplicate scanning, and sync report export.
See CONTRIBUTING.md for the public-repository quality bar and release checks.
Optional local pre-commit setup:
py -m pre_commit install
py -m pre_commit run --all-files
Screenshots
Core screenshots are committed under docs/screenshots/. The capture plan and recommended filenames are documented in docs/SCREENSHOTS.md.
GitHub Pages
The static GitHub Pages site lives in docs/. The page is deployed by .github/workflows/pages.yml and uses screenshots in docs/screenshots/.
Currently linked screenshots:
docs/screenshots/dashboard.pngdocs/screenshots/gallery.pngdocs/screenshots/duplicates.png
Roadmap
The public roadmap lives in ROADMAP.md.
Library Index
The app keeps a local SQLite index named photo_manager_index.sqlite3 inside the selected photo root. The index is local and disposable: it can be rebuilt from the library, sync logs, and blur CSVs.
The index stores:
- media file paths, sizes, timestamps, years, dimensions, status, and optional quick hashes,
- sync events from batch sync, background sync, and the headless service,
- blur scores imported from
blur_tool.py, - captions, tags, OCR text, and future AI embedding data.
In the GUI, Library Index -> Rebuild Index scans the current root folder. Import Blur CSV imports existing blur scan results. Batch sync, background sync, Windows service, blur scan, and blur auto-delete all update the index.
Dashboard, Gallery, Duplicates, Delete Queue, and Light AI use this same index. After changing the root folder or importing a large existing library, rebuild the index first.
The Dashboard can export indexed sync events to photo_manager_sync_report.csv for release testing, troubleshooting, or archival review.
Gallery, Duplicates, And Delete Queue
Gallery thumbnails are cached in .photo_manager_cache/thumbnails inside the selected root. The cache is ignored by the indexer and can be deleted safely; it will be rebuilt as needed.
Duplicate Review does not delete files directly. It adds candidates to the Safe Delete Queue. From there, decisions can be cancelled, exported to CSV, or moved to the system recycle bin.
Privacy And Safety
Photo Manager Pro is designed for local photo-library maintenance. The normal sync, index, duplicate, blur, gallery, and Light AI workflows operate on files on the current machine and store metadata in the selected library root or the per-user app configuration folder.
The app does not upload photos to a cloud service. Update checks read public PyPI package metadata, and optional OCR only runs when the user installs and enables local OCR dependencies.
Potentially destructive actions are staged through review-oriented flows:
- batch source deletion only runs after successful synchronization and verification,
- Duplicate Review queues candidates instead of deleting them directly,
- Safe Delete Queue moves files to the system recycle bin by default,
- hard delete options are explicit and should only be used with disposable test libraries or confirmed backups.
Light AI
Light AI is currently a local heuristic backend, not a heavy model. It can tag likely screenshots, documents, food, landscapes, people, and low-quality photos. OCR is optional.
Optional OCR install:
python -m pip install "photosync-tool[ai]"
OCR also needs a local Tesseract installation.
Startup And Background Work
The GUI has two startup options:
Autostart background on launchstarts folder watching after the app launches.Open on Windows startupadds an entry toHKCU\Software\Microsoft\Windows\CurrentVersion\Run, so the app starts when the current user logs in.
There is also a headless entry point in photo_manager_service.py. It can run a one-shot sync, run as a foreground watcher, or expose Windows Service commands through pywin32:
photo-manager-service once
photo-manager-service run
photo-manager-service install
photo-manager-service start
photo-manager-service stop
Service mode is implemented, but still needs real-world install/start/stop testing on a clean machine and better setup around logs, permissions, and uninstall behavior.
Schedule
The GUI has a Sync hours field and a simple weekly schedule editor. The hour field accepts one or more ranges:
0-24means all day.8-18means sync only during that time window.22-7means an overnight window crossing midnight.8-12,14-18means multiple windows in one day.
In background sync mode, files detected outside the allowed window are queued and processed when the window opens again.
Still open:
- separate schedules for sync, blur analysis, and AI metadata,
- a
pause untilmode, - restricting heavier work to nighttime,
- a more durable retry queue for background tasks.
AI Direction
Full Torch should not be a hard dependency for the desktop app. The better path is to keep heavier AI optional:
- Start with an API backend or ONNX Runtime as an optional backend.
- Use SQLite as the cache for tags, captions, embeddings, and review decisions.
- For local models, use
onnxruntimewith CLIP/SigLIP embeddings for similarity and search. - Add
torchlater as a separaterequirements-ai.txtpackage only when training or GPU-heavy models are needed.
Torch is powerful, but heavy. For a desktop tool that should stay easy to run, ONNX Runtime or an API backend is the more practical default.
Still Open
- Test and harden Windows Service install/start/stop on a clean Windows machine.
- Test and polish the Inno Setup installer flow.
- Add a signed release flow for
PhotoManagerPro.exeand the installer. - Add pause controls and separate schedules for sync, blur, and AI work.
- Add an optional hard-AI panel: ONNX/SigLIP or CLIP embeddings, backend, model, batch size, GPU/CPU, and embedding cache.
License
This project is licensed under the MIT License.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file photosync_tool-0.1.2.tar.gz.
File metadata
- Download URL: photosync_tool-0.1.2.tar.gz
- Upload date:
- Size: 451.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6578af9a02990870777ac1cb5759c5b8b37a306bce88201a1abc9c95f7a43cbc
|
|
| MD5 |
c14d4fef210ffc4c192cc14d7078f378
|
|
| BLAKE2b-256 |
049abe88645a2bb17210360942418137c7a8a591c21da5653621802e585d2a19
|
Provenance
The following attestation bundles were made for photosync_tool-0.1.2.tar.gz:
Publisher:
publish.yml on Filipluke/PhotoSyncTool
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
photosync_tool-0.1.2.tar.gz -
Subject digest:
6578af9a02990870777ac1cb5759c5b8b37a306bce88201a1abc9c95f7a43cbc - Sigstore transparency entry: 1496357383
- Sigstore integration time:
-
Permalink:
Filipluke/PhotoSyncTool@90c1cd7fa25d9d0e482e842cf03bd6dad36101a8 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Filipluke
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@90c1cd7fa25d9d0e482e842cf03bd6dad36101a8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file photosync_tool-0.1.2-py3-none-any.whl.
File metadata
- Download URL: photosync_tool-0.1.2-py3-none-any.whl
- Upload date:
- Size: 442.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
385b8b59b89f21bf30155a19ebdff0e793457e3a246557a5d69d0cf5663ccc4c
|
|
| MD5 |
954dc31c922a19cb183eb6bf89de9089
|
|
| BLAKE2b-256 |
44b12e11101d9c09b7eeb41cb9fa2610e13cb4fedb4dcabe04afbf3ed78406cc
|
Provenance
The following attestation bundles were made for photosync_tool-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on Filipluke/PhotoSyncTool
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
photosync_tool-0.1.2-py3-none-any.whl -
Subject digest:
385b8b59b89f21bf30155a19ebdff0e793457e3a246557a5d69d0cf5663ccc4c - Sigstore transparency entry: 1496357511
- Sigstore integration time:
-
Permalink:
Filipluke/PhotoSyncTool@90c1cd7fa25d9d0e482e842cf03bd6dad36101a8 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Filipluke
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@90c1cd7fa25d9d0e482e842cf03bd6dad36101a8 -
Trigger Event:
release
-
Statement type: