Users

class spotify.User(session, uri=None, sp_user=None, add_ref=True)[source]

A Spotify user.

You can get users from the session, or you can create a User yourself from a Spotify URI:

>>> session = spotify.Session()
# ...
>>> user = session.get_user('spotify:user:jodal')
>>> user.load().display_name
u'jodal'
canonical_name

The user’s canonical username.

display_name

The user’s displayable username.

is_loaded

Whether the user’s data is loaded yet.

load(timeout=None)[source]

Block until the user’s data is loaded.

After timeout seconds with no results Timeout is raised. If timeout is None the default timeout is used.

The method returns self to allow for chaining of calls.

A Link to the user.

starred

The Playlist of tracks starred by the user.

published_playlists

The PlaylistContainer of playlists published by the user.