Skip to main content

Python client for the Spotify Recommendations API.

Install:

pip install music-recommender

Example:

from recommender.api import Recommender

recommender = Recommender()
recommender.artists = 'Johnny Cash'
recommender.genres = [
    'country',
    'party'
]
recommender.track_attributes = {
    'danceability': 1.0
}

recommendations = recommender.find_recommendations()
for recommendation in recommendations['tracks']:
    print("%s - %s" % (recommendation['name'], recommendation['artists'][0]['name']))

Metadata

Release files for music-recommender 1.0.5

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

Source distribution (sdist)

Source distribution for music-recommender 1.0.5
File Size Uploaded Provenance Actions
music-recommender-1.0.5.tar.gz 3.6 kB Without provenance Details for music-recommender-1.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for music-recommender 1.0.5
File Interpreter ABI Platform Actions
music_recommender-1.0.5-py2.py3-none-any.whl Python 3, Python 2 none any Details for music_recommender-1.0.5-py2.py3-none-any.whl

Total release size: 7.1 kB

Release files / music-recommender-1.0.5.tar.gz

Download URL music-recommender-1.0.5.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
883709460743b2c6d76e4c35d0159e06551d3fabdb45180a8adfc892a1f6ec68
BLAKE2b-256 checksum
How to use checksums
b6c7106d5876848209c542c5a46a9882e901187e41a60cfe693993f489d79c3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.10

Release files / music_recommender-1.0.5-py2.py3-none-any.whl

Download URL music_recommender-1.0.5-py2.py3-none-any.whl
Size 3.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e3c1be99e3efa488691da42f9db3976f4edb9656aa3bf0f59c6b3e55e3e537f8
BLAKE2b-256 checksum
How to use checksums
0fcabc67ff12d263e99537554ded70e236cfe2eda2ecfd0ff475d03fb1776b9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.10

Security for music-recommender 1.0.5

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