Skip to main content

A library to aid in automating iTunes via ScriptingBridge.

Project description

pietunes is a Python library that creates an abstraction of Apple’s Scripting Bridge API for iTunes. This makes it much easier to write Python scripts (or full python applications) that interact with iTunes and the iTunes Store.

There are some caveats:
  • The only external dependency right now is PyObjC

  • Due to this dependency, this pietunes Python library is only available for MacOS [1]

  • This is a modern Python library that requires Python>=3.6

Objectives

  1. Create a modern, stable Python library with a clearly-defined API

  2. Provide as close to 100% Test Coverage as possible [2]

  3. Provide clear documentation with full coverage of the API and example code.

Installing

Install and update using pip:

pip install -U pietunes

A Simple Example

from pietunes import App

app = App()

def _get_all_playlists():
    return app.playlists

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pietunes-0.0.1.tar.gz (16.6 kB view hashes)

Uploaded Source

Built Distribution

pietunes-0.0.1-py3-none-any.whl (18.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page