calliope.shuffle

Package Contents

Functions

shuffle(playlist[, count])

Simple playlist shuffle.

calliope.shuffle.shuffle(playlist, count=None)

Simple playlist shuffle.

This randomises the order of the items in the playlist.

There is a lot more involved in creating “good” shuffled playlists. For example see https://labs.spotify.com/2014/02/28/how-to-shuffle-songs/

Parameters:
  • playlist (calliope.playlist.Playlist) – Input playlist.

  • count (int) – Maximum number of items in the output playlist (default: unlimited).

Returns:

A playlist.

Return type:

calliope.playlist.Playlist