Package lastfm :: Module user :: Class User
[hide private]
[frames] | no frames]

Class User

source code

                object --+    
                         |    
           base.LastfmBase --+
                             |
                object --+   |
                         |   |
mixins.cacheable.Cacheable --+
                             |
                object --+   |
                         |   |
mixins.shoutable.Shoutable --+
                             |
                            User

A class representing an user.

Nested Classes [hide private]
  Playlist
A class representing a playlist belonging to the user.
  Library
A class representing the music library of the user.
Instance Methods [hide private]
 
init(self, api, name=None, real_name=None, url=None, image=None, stats=None) source code
 
get_past_events(self, limit=None) source code
 
get_recommended_events(self, *args, **kwargs) source code
 
get_friends(self, limit=None) source code
 
get_neighbours(self, limit=None) source code
 
create_playlist(self, *args, **kwargs) source code
 
get_recent_tracks(self, limit=None) source code
 
get_top_albums(self, period=None) source code
 
get_top_artists(self, period=None) source code
 
get_top_tracks(self, period=None) source code
 
get_top_tags(self, limit=None) source code
 
get_weekly_album_chart(self, start=None, end=None) source code
 
get_weekly_artist_chart(self, start=None, end=None) source code
 
get_weekly_track_chart(self, start=None, end=None) source code
 
get_weekly_tag_chart(self, start=None, end=None) source code
 
compare(self, other, limit=None) source code
 
_default_params(self, extra_params={}) source code
 
__hash__(self)
hash(x)
source code
 
__eq__(self, other) source code
 
__lt__(self, other) source code
 
__repr__(self)
repr(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __init__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

    Inherited from base.LastfmBase
 
__ge__(self, other) source code
 
__gt__(self, other) source code
 
__le__(self, other) source code
 
__ne__(self, other) source code
Static Methods [hide private]
 
get_info(api, name) source code
 
get_authenticated_user(api) source code
 
_hash_func(*args, **kwds) source code
    Inherited from base.LastfmBase
 
autheticate(func) source code
 
cached_property(func) source code
 
top_property(list_property_name) source code
    Inherited from mixins.cacheable.Cacheable
a new object with type S, a subtype of T
__new__(cls, *args, **kwds) source code
 
register(ob, key) source code
Class Variables [hide private]
    Inherited from mixins.cacheable.Cacheable
  _lock = Lock()
  registry = {}
Properties [hide private]
  name
name of the user
  real_name
real name of the user
  url
url of the user's page
  image
image of the user
  stats
stats for the user
  language
  country
  age
  gender
  subscriber
  autheticated
is the user autheticated
  events
  past_events
  recommended_events
  friends
friends of the user
  neighbours
neighbours of the user
  nearest_neighbour
nearest neightbour of the user
  playlists
playlists of the user
  loved_tracks
  recent_tracks
recent tracks played by the user
  most_recent_track
most recent track played by the user
  top_albums
overall top albums of the user
  top_album
overall top most album of the user
  top_artists
top artists of the user
  top_artist
top artist of the user
  recommended_artists
  top_tracks
top tracks of the user
  top_track
top track of the user
  top_tags
top tags of the user
  top_tag
top tag of the user
  weekly_chart_list
  recent_weekly_album_chart
  weekly_album_chart_list
  recent_weekly_artist_chart
  weekly_artist_chart_list
  recent_weekly_track_chart
  weekly_track_chart_list
  recent_weekly_tag_chart
  weekly_tag_chart_list
  library

Inherited from object: __class__

    Inherited from mixins.shoutable.Shoutable
  recent_shout
recent shout for this subject
  shouts
shouts for this ssubject
Method Details [hide private]

init(self, api, name=None, real_name=None, url=None, image=None, stats=None)

source code 
Overrides: mixins.shoutable.Shoutable.init

get_recommended_events(self, *args, **kwargs)

source code 
Decorators:
  • @LastfmBase.autheticate

create_playlist(self, *args, **kwargs)

source code 
Decorators:
  • @LastfmBase.autheticate

_default_params(self, extra_params={})

source code 
Overrides: mixins.shoutable.Shoutable._default_params

__hash__(self)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

Property Details [hide private]

name

name of the user

Get Method:
unreachable.name(self) - name of the user

real_name

real name of the user

Get Method:
unreachable.real_name(self) - real name of the user

url

url of the user's page

Get Method:
unreachable.url(self) - url of the user's page

image

image of the user

Get Method:
unreachable.image(self) - image of the user

stats

stats for the user

Get Method:
unreachable.stats(self) - stats for the user

language

Get Method:
unreachable.wrapper(self, *args, **kwargs)

country

Get Method:
unreachable.wrapper(self, *args, **kwargs)

age

Get Method:
unreachable.wrapper(self, *args, **kwargs)

gender

Get Method:
unreachable.wrapper(self, *args, **kwargs)

subscriber

Get Method:
unreachable.wrapper(self, *args, **kwargs)

autheticated

is the user autheticated

Get Method:
unreachable.autheticated(self) - is the user autheticated

events

Get Method:
unreachable.wrapper(ob)

past_events

Get Method:
unreachable.wrapper(ob)

recommended_events

Get Method:
unreachable.wrapper(ob)

friends

friends of the user

Get Method:
unreachable.wrapper(ob)

neighbours

neighbours of the user

Get Method:
unreachable.wrapper(ob)

nearest_neighbour

nearest neightbour of the user

Get Method:
unreachable.wrapper(ob)

playlists

playlists of the user

Get Method:
unreachable.wrapper(ob)

loved_tracks

Get Method:
unreachable.wrapper(ob)

recent_tracks

recent tracks played by the user

Get Method:
unreachable.recent_tracks(self) - recent tracks played by the user

most_recent_track

most recent track played by the user

Get Method:
unreachable.wrapper(ob)

top_albums

overall top albums of the user

Get Method:
unreachable.wrapper(ob)

top_album

overall top most album of the user

Get Method:
unreachable.wrapper(ob)

top_artists

top artists of the user

Get Method:
unreachable.wrapper(ob)

top_artist

top artist of the user

Get Method:
unreachable.wrapper(ob)

recommended_artists

Get Method:
unreachable.wrapper(ob)

top_tracks

top tracks of the user

Get Method:
unreachable.wrapper(ob)

top_track

top track of the user

Get Method:
unreachable.wrapper(ob)

top_tags

top tags of the user

Get Method:
unreachable.wrapper(ob)

top_tag

top tag of the user

Get Method:
unreachable.wrapper(ob)

weekly_chart_list

Get Method:
unreachable.wrapper(ob)

recent_weekly_album_chart

Get Method:
unreachable.wrapper(ob)

weekly_album_chart_list

Get Method:
unreachable.wrapper(ob)

recent_weekly_artist_chart

Get Method:
unreachable.wrapper(ob)

weekly_artist_chart_list

Get Method:
unreachable.wrapper(ob)

recent_weekly_track_chart

Get Method:
unreachable.wrapper(ob)

weekly_track_chart_list

Get Method:
unreachable.wrapper(ob)

recent_weekly_tag_chart

Get Method:
unreachable.wrapper(ob)

weekly_tag_chart_list

Get Method:
unreachable.wrapper(ob)

library

Get Method:
unreachable.library(self)