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

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.1.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

apple_music_python-1.0.1-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

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