Skip to main content

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

Metadata

Release files for apple-music-python 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apple-music-python 1.0.6
File Size Uploaded Provenance Actions
apple_music_python-1.0.6.tar.gz 7.8 kB Without provenance Details for apple_music_python-1.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apple-music-python 1.0.6
File Interpreter ABI Platform Actions
apple_music_python-1.0.6-py3-none-any.whl Python 3 none any Details for apple_music_python-1.0.6-py3-none-any.whl

Total release size: 15.8 kB

Release files / apple_music_python-1.0.6.tar.gz

Download URL apple_music_python-1.0.6.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
386437ac7cffc6c1a07e2ceb461ed30a752886668db9364a216587b9116ad7ed
BLAKE2b-256 checksum
How to use checksums
da994bf6c4087646ce2ee4ae4d4d74ea370d5040e1f671155ee3be8495bdb587
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.8.2

Release files / apple_music_python-1.0.6-py3-none-any.whl

Download URL apple_music_python-1.0.6-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24f02e105a996f92caa79a673dba53d9e9a9090c983622c46595e56d29f23e0e
BLAKE2b-256 checksum
How to use checksums
9113105d17957051f6410367a6dd060934fd0a23a6c7276391fae47a62c59339
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.8.2

Security for apple-music-python 1.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page