[Pythonmac-SIG] Accessing the iTunes database directly?

David Stokes stokes at mac.com
Tue Dec 14 18:57:20 CET 2010


Can the iTunes library database be accessed directly via Python? What I want to do are some fairly basic manipulations of the data but using the scripting API (from both appscript and AppleScript) was ridiculously slow; operations that took seconds in comparable manipulations of a SQLite database of a similar size took multiple hours. I had thought I'd heard that iTunes uses -- or once used -- SQLite, but either it has changed or I was just looking in the wrong place.

If nothing else, I suppose I can use an XML export of the library data and then re-import it.

Thanks,
David

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20101214/91d75471/attachment.html>


More information about the Pythonmac-SIG mailing list