osxphotos
last updated: Jan 12, 2026
https://github.com/RhetTbull/osxphotos
OSXPhotos provides the ability to interact with and query Apple's Photos.app library on macOS and Linux. You can query the Photos library database — for example, file name, file path, and metadata such as keywords/tags, persons/faces, albums, etc. You can also easily export both the original and edited photos. OSXPhotos also works with iPhoto libraries though some features are available only for Photos.
seems not to be updated for Tahoe yet, though it's unclear if it is compatible or not.
cf PhotosExport