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

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pietunes-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 d6cc65ae2f9302f559ffd4a9490e9ddf4b7907a9d5dec8c31af6d493954ed0bc
MD5 c597689145e2fb924b4f2be81b759554
BLAKE2b-256 911d286c711cf480062512b9650653d20fe11e1697e72e9dcb1dc3f3108ca05d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pietunes-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 62d40487a84de12c356a50c5fc2132229ad32e6458627fd8a27855b2bb5d3b21
MD5 06452b8c42977c884f5c725dfada9cbe
BLAKE2b-256 83e37d05efc8b85c276c7ac6ddd1dd4a9fcda952331db345d327ce08627f91ca

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