Skip to main content

A python wrapper for the Apple Music API

Project description

apple-music-python

A python wrapper for the Apple Music API.

See the Apple Music API documentation for additional info.

NOTE: This does not support library resources.

Getting Started

Documentation

Find full documentation of the project here: https://apple-music-python.readthedocs.io

Prerequisites

You must have an Apple Developer Account and a MusicKit API Key. See instructions on how to obtain these here: Getting Keys And Creating Tokens.

Dependencies

Installing

python setup.py install

or

pip install apple-music-python

Example

import applemusicpy

secret_key = 'x'
key_id = 'y'
team_id = 'z'

am = applemusicpy.AppleMusic(secret_key=secret_key, key_id=key_id, team_id=team_id)
results = am.search('travis scott', types=['albums'], limit=5)
for item in results['results']['albums']['data']:
    print(item['attributes']['name'])

Versioning

  • v1.0.0 - Initial Release - 12/15/2018
  • v1.0.1 - Updated package info on PyPI - 12/16/2018
  • v1.0.2 - Added Windows search support - 01/21/2019
  • v1.0.3 - Fixed error handling of HTTPError - 11/03/2019
  • v1.0.4 - Fixed error with reading token - 01/24/2021
  • v1.0.5 - Refresh token before request if token is expired - 05/09/2021

Authors

License

This project is licensed under the MIT License - see the LICENSE.txt file for details

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

apple-music-python-1.0.5.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

apple_music_python-1.0.5-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file apple-music-python-1.0.5.tar.gz.

File metadata

  • Download URL: apple-music-python-1.0.5.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.2

File hashes

Hashes for apple-music-python-1.0.5.tar.gz
Algorithm Hash digest
SHA256 a07323477432ebe62bc47880cba33480af0ce51f5ec56e7d08bb927ee19a3d96
MD5 49e4d9e1c902b5303a1e6ba6824105a2
BLAKE2b-256 055690443c74723354852ff6627dc291020849b1d8ee576f4b3157d96ca211ef

See more details on using hashes here.

File details

Details for the file apple_music_python-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: apple_music_python-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.2

File hashes

Hashes for apple_music_python-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fab11302bb2182cc59323ac0d2246ed8cd94760d20bef7024fd682fb56510da3
MD5 c36da6ae15a30dada8c4218bdf0fb98c
BLAKE2b-256 54fd651b6f914ce88848eb42e01bb65dcccd5c0b6ffcb8fe2f111f6702fb9e57

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