Skip to main content

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

Metadata

Release files for pietunes 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pietunes 0.0.5
File Size Uploaded
pietunes-0.0.5.tar.gz 17.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pietunes 0.0.5
File Interpreter ABI Platform
pietunes-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 38.3 kB

Release files / pietunes-0.0.5.tar.gz

Download URL pietunes-0.0.5.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6090656e4530b22cfb04e7bc48264a373a8278a65f557b7cf06fa56e25ec5a69
BLAKE2b-256 checksum
How to use checksums
f8885471b2a85350cf12168fd4bf0fe305ee207cd2c958895a4f5c5fc442e766
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pietunes-0.0.5-py3-none-any.whl

Download URL pietunes-0.0.5-py3-none-any.whl
Size 20.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3464a3af6aa9f315b3028199a0b9720ca491a0568f7c818d51c2c29ca6131e50
BLAKE2b-256 checksum
How to use checksums
779d2f4de39a8c9e2e34cebe10e5d2750739b231e9a670f14ae87ee4562b2a63
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page