通过ScriptingBridge帮助实现iTunes自动化的库。
pietunes的Python项目详细描述
pietunes是一个python库,它创建了 苹果为iTunes开发的脚本桥API。这使得 编写与之交互的python脚本(或完整的python应用程序) iTunes和iTunes商店。
目标
- 使用定义明确的api创建一个现代、稳定的python库
- 提供尽可能接近100%的测试覆盖率[2]
- 提供清晰的文档,全面介绍api和示例代码。
安装
使用pip安装和更新
pip install -U pietunes
一个简单的例子
frompietunesimportAppapp=App()def_get_all_playlists():returnapp.playlists
链接
- 网址:https://pypi.org/project/pietunes/
- 文档:https://brianfarrell.gitlab.io/pietunes/
- 许可证:https://www.gnu.org/licenses/agpl.html
- 发行版:https://pypi.org/project/pietunes/
- 代码:https://gitlab.com/brianfarrell/pietunes/
- 问题跟踪程序:
- 测试状态:
- 测试覆盖范围:
脚注
[1] | Once this is working correctly on MacOS, I will look into how I might possibly get it working for iTunes on Windows. |
[2] | This project started-out as a Proof of Concept (POC). At that point, no automated testing was involved. Going forward, all new development and bug fixes will be test-driven. |