Spotify

spotify.Album

class pomice.spotify.album.Album(data: dict)

Bases: object

The base class for a Spotify album

spotify.Client

class pomice.spotify.client.Client(client_id: str, client_secret: str)

Bases: object

The base client for the Spotify module of Pomice. This class will do all the heavy lifting of getting all the metadata for any Spotify URL you throw at it.

async search(*, query: str)

spotify.Exceptions

exception pomice.spotify.exceptions.InvalidSpotifyURL

Bases: Exception

An invalid Spotify URL was passed

exception pomice.spotify.exceptions.SpotifyRequestException

Bases: Exception

An error occurred when making a request to the Spotify API

spotify.Playlist

class pomice.spotify.playlist.Playlist(data: dict, tracks: List[pomice.spotify.track.Track])

Bases: object

The base class for a Spotify playlist

spotify.Track

class pomice.spotify.track.Track(data: dict)

Bases: object

The base class for a Spotify Track