calliope

Calliope is a set of tools for processing playlists.

This module contains the core parts of Calliope.

Subpackages

Submodules

Package Contents

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.

Attributes

__VERSION__

class calliope.ContentResolver

Interface for modules that can resolve playable tracks.

abstract authenticate()
abstract 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.

abstract prepare_sync()
abstract annotate(item)
abstract scrobbles()
abstract listens()
abstract artists(first_play_before=None, first_play_since=None, last_play_before=None, last_play_since=None, min_listens=1, show_listens_since=None)
abstract tracks(first_play_before=None, first_play_since=None, last_play_before=None, last_play_since=None, min_listens=1, show_listens_since=None)
abstract 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]