Skip to content

Instantly share code, notes, and snippets.

View dsherrer2's full-sized avatar

David Sherrer dsherrer2

  • Joined Apr 13, 2026
View GitHub Profile
#!/usr/bin/env python3
"""
Export Fairlawn-located photos from iCloud Photos library to a local folder.
Triggers iCloud download of originals as needed via osxphotos.
"""
import sys, os, time
from pathlib import Path
import osxphotos
from osxphotos.photoexporter import PhotoExporter, ExportOptions
@dsherrer2
dsherrer2 / bridge.py
Last active May 9, 2026 17:51
MacroVation photo bridge
#!/usr/bin/env python3
"""
Read-only Photos library bridge + serve files from photo_bridge dir.
v1.2 adds /raw endpoint to download tarball etc.
"""
import os, sys, json, secrets, mimetypes
from pathlib import Path
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
from urllib.parse import urlparse, parse_qs