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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pietunes-0.0.3-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pietunes-0.0.3.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.0 CPython/3.7.3

File hashes

Hashes for pietunes-0.0.3.tar.gz
Algorithm Hash digest
SHA256 612ff786af8cc4cfe6539032ae8fd3403a1488b670743c5275808abf1f384fdb
MD5 f48cf5313bb7eee058a80be7b41a2ae8
BLAKE2b-256 37bb50d511c8feaa037793f1a926f7d2665312e79534e3ec0dbddabf3dd52f6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pietunes-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 20.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.0 CPython/3.7.3

File hashes

Hashes for pietunes-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4c2a29691e9d61e08a5ea6d7ca6143c740dc8cdfa035b3aa1844f7c69773e787
MD5 4dcb461c41b06da2a2d39f7a92d13b03
BLAKE2b-256 7b3fcf4800f0e8c8735b413809289cda968ad5968a2e8098ab4afd440f373f18

See more details on using hashes here.

Supported by

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