Skip to main content

A Python client for the Spotify Recommendations API.

Project description

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']))

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

music-recommender-1.0.5.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

music_recommender-1.0.5-py2.py3-none-any.whl (3.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file music-recommender-1.0.5.tar.gz.

File metadata

  • Download URL: music-recommender-1.0.5.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for music-recommender-1.0.5.tar.gz
Algorithm Hash digest
SHA256 883709460743b2c6d76e4c35d0159e06551d3fabdb45180a8adfc892a1f6ec68
MD5 55bf55cf28315b33b778be4f8370fe2e
BLAKE2b-256 b6c7106d5876848209c542c5a46a9882e901187e41a60cfe693993f489d79c3b

See more details on using hashes here.

File details

Details for the file music_recommender-1.0.5-py2.py3-none-any.whl.

File metadata

  • Download URL: music_recommender-1.0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for music_recommender-1.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e3c1be99e3efa488691da42f9db3976f4edb9656aa3bf0f59c6b3e55e3e537f8
MD5 1fb593090d8da99015cac87d210305dd
BLAKE2b-256 0fcabc67ff12d263e99537554ded70e236cfe2eda2ecfd0ff475d03fb1776b9c

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