picklepete / pyicloud

A Python + iCloud wrapper to access iPhone and Calendar data.
MIT License
2.45k stars 437 forks source link

This is fantastic! #436

Open ed2050 opened 11 months ago

ed2050 commented 11 months ago

This package is absolutely fantastic! I was able to install and query my icloud account in minutes! Well done guys.

One question: Is there a way to filter results from api.photos? I see a query_filter member in api.photos.all but its value is none. Don't see any other way to filter photos. Just iterate over photos.all and filter myself, which takes a long time to fetch them all from the server (10k photos, 8-10 mins).

I cached the photo data locally to quickly iterate over (name, creation, size, dimensions, etc). But once I narrow it down to the photos I want to operate on (download, delete), I have to iterate over api.photos.all again to get the icloud objects, which takes several minutes.

Would be great if there's a way to speed that up. A filter for id, filename, year etc to tell the API to only fetch photos matching the criteria. Any suggestions?

Thanks again for your great work!