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

Uploaded Source

Built Distribution

pietunes-0.0.2-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pietunes-0.0.2.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pietunes-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4bbfa1bd4d85c8d7930a7d1978cf7ca36cd6546a3009ce625677ea7dfffa3694
MD5 e7a4b5948b266c4eaed01c2e24a50112
BLAKE2b-256 827c2115b60d4e1a09a79dc84e990b56894e78e5a0210b1726e154b023b679dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pietunes-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pietunes-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b27007eea1438092c9b640a43b931ef2e91385f0e1a52e6b89092f37b79bebe3
MD5 b18eef7965ea7f99090e9259d276d18e
BLAKE2b-256 3d8de7aaf55ce9954fc7c6b3f78aaa8ff731525333532561634f28dbab7f22f5

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