calliope.lastfm

Submodules

Package Contents

Classes

LastfmContext

Functions

sha1sum(text)

parse_response_code(url)

Parse the response code in the given response url

prompt_for_user_token(username, client_id=None, client_secret=None, redirect_uri=None)

Prompt user to obtain authorization token.

add_lastfm_artist_top_tags(lastfm, cache, item)

annotate_tags(lastfm, playlist)

similar_artists(lastfm, count, artist_name)

similar_tracks(lastfm, count, artist_name, track_name)

top_artists(lastfm, count, time_range, include)

class calliope.lastfm.LastfmContext(config, user=None)
authenticate(self)
calliope.lastfm.sha1sum(text)
calliope.lastfm.parse_response_code(url)

Parse the response code in the given response url

calliope.lastfm.prompt_for_user_token(username, client_id=None, client_secret=None, redirect_uri=None)

Prompt user to obtain authorization token.

calliope.lastfm.add_lastfm_artist_top_tags(lastfm, cache, item)
calliope.lastfm.annotate_tags(lastfm, playlist)
calliope.lastfm.similar_artists(lastfm, count, artist_name)
calliope.lastfm.similar_tracks(lastfm, count, artist_name, track_name)
calliope.lastfm.top_artists(lastfm, count, time_range, include)