Base

Inheritance diagram of musify.libraries.remote.spotify.base

Core abstract classes for the Spotify module.

These define the foundations of any Spotify object or item.

Classes:

SpotifyObject(response[, api, skip_checks])

Generic base class for Spotify-stored objects.

SpotifyItem(response[, api, skip_checks])

Generic base class for Spotify-stored items.

class musify.libraries.remote.spotify.base.SpotifyObject(response, api=None, skip_checks=False)

Bases: RemoteObject[SpotifyAPI]

Generic base class for Spotify-stored objects. Extracts key data from a Spotify API JSON response.

Attributes:

id

The ID of this item/collection.

uri

URI (Uniform Resource Indicator) is the unique identifier for this item/collection.

has_uri

Does this item/collection have a valid URI that is not a local URI.

url

The API URL of this item/collection.

url_ext

The external URL of this item/collection.

property id

The ID of this item/collection.

property uri

URI (Uniform Resource Indicator) is the unique identifier for this item/collection.

property has_uri

Does this item/collection have a valid URI that is not a local URI.

property url

The API URL of this item/collection.

property url_ext

The external URL of this item/collection.

class musify.libraries.remote.spotify.base.SpotifyItem(response, api=None, skip_checks=False)

Bases: SpotifyObject, RemoteItem

Generic base class for Spotify-stored items. Extracts key data from a Spotify API JSON response.