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'
property canonical_name

The user’s canonical username.

property display_name

The user’s displayable username.

property 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.

property starred

The Playlist of tracks starred by the user.

property published_playlists

The PlaylistContainer of playlists published by the user.