calliope.interface¶
Interface definitions for functionality that multiple modules can provide.
Classes¶
Interface for modules that can resolve playable tracks. |
|
Interface for modules that provide a person's listening history. |
Module Contents¶
- class calliope.interface.ContentResolver¶
Interface for modules that can resolve playable tracks.
- abstractmethod authenticate()¶
- abstractmethod resolve_content(playlist)¶
- Parameters:
playlist (calliope.playlist.Playlist)
- Return type:
- class calliope.interface.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')¶