:py:mod:`calliope.lastfm` ========================= .. py:module:: calliope.lastfm Submodules ---------- .. toctree:: :titlesonly: :maxdepth: 1 history/index.rst lastexport/index.rst Package Contents ---------------- Classes ~~~~~~~ .. autoapisummary:: calliope.lastfm.LastfmContext Functions ~~~~~~~~~ .. autoapisummary:: calliope.lastfm.sha1sum calliope.lastfm.parse_response_code calliope.lastfm.prompt_for_user_token calliope.lastfm.add_lastfm_artist_top_tags calliope.lastfm.annotate_tags calliope.lastfm.similar_artists calliope.lastfm.similar_tracks calliope.lastfm.top_artists .. py:class:: LastfmContext(config, user=None) .. py:method:: authenticate(self) .. py:function:: sha1sum(text) .. py:function:: parse_response_code(url) Parse the response code in the given response url .. py:function:: prompt_for_user_token(username, client_id=None, client_secret=None, redirect_uri=None) Prompt user to obtain authorization token. .. py:function:: add_lastfm_artist_top_tags(lastfm, cache, item) .. py:function:: annotate_tags(lastfm, playlist) .. py:function:: similar_artists(lastfm, count, artist_name) .. py:function:: similar_tracks(lastfm, count, artist_name, track_name) .. py:function:: top_artists(lastfm, count, time_range, include)