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()

movie_playlist = app.get_playlist("Movies")

movies = list(app.get_tracks(movie_playlist))

for movie in movies:
   print(movie.name())

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.5.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

pietunes-0.0.5-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file pietunes-0.0.5.tar.gz.

File metadata

  • Download URL: pietunes-0.0.5.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6

File hashes

Hashes for pietunes-0.0.5.tar.gz
Algorithm Hash digest
SHA256 6090656e4530b22cfb04e7bc48264a373a8278a65f557b7cf06fa56e25ec5a69
MD5 1c06a1ee1e7869658a9df1d1ccbd54ac
BLAKE2b-256 f8885471b2a85350cf12168fd4bf0fe305ee207cd2c958895a4f5c5fc442e766

See more details on using hashes here.

File details

Details for the file pietunes-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: pietunes-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 20.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6

File hashes

Hashes for pietunes-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3464a3af6aa9f315b3028199a0b9720ca491a0568f7c818d51c2c29ca6131e50
MD5 fbc7165bc734720882a565c453bab186
BLAKE2b-256 779d2f4de39a8c9e2e34cebe10e5d2750739b231e9a670f14ae87ee4562b2a63

See more details on using hashes here.

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