calliope

Calliope is a set of tools for processing playlists.

This module contains the core parts of Calliope.

Submodules

Attributes

__VERSION__

Classes

ContentResolver

Interface for modules that can resolve playable tracks.

ListenHistoryProvider

Interface for modules that provide a person's listening history.

Functions

uri_to_path(uri)

Convert a file:/// URI to a pathlib.Path.

available_content_resolvers()

List of available classes supporting a resolve_content method.

available_listen_history_providers()

List of available classes supporting the listen history interface.

Package Contents

class calliope.ContentResolver

Interface for modules that can resolve playable tracks.

abstractmethod authenticate()
abstractmethod resolve_content(playlist)
Parameters:

playlist (calliope.playlist.Playlist)

Return type:

calliope.playlist.Playlist

class calliope.ListenHistoryProvider

Interface for modules that provide a person’s listening history.

abstractmethod prepare_sync()
abstractmethod annotate(item)
abstractmethod scrobbles()
abstractmethod listens()
abstractmethod artists(first_play_before=None, first_play_since=None, last_play_before=None, last_play_since=None, min_listens=1, show_listens_since=None)
abstractmethod tracks(first_play_before=None, first_play_since=None, last_play_before=None, last_play_since=None, min_listens=1, show_listens_since=None)
abstractmethod histogram(bucket='year')
calliope.__VERSION__ = 'uninstalled'
calliope.uri_to_path(uri)

Convert a file:/// URI to a pathlib.Path.

calliope.available_content_resolvers()

List of available classes supporting a resolve_content method.

The list is:

Return type:

List[interface.ContentResolver]

calliope.available_listen_history_providers()

List of available classes supporting the listen history interface.

(This interface is not yet defined explicitly).

The list is:

Return type:

List[interface.ListenHistoryProvider]