Package lastfm :: Module track :: Class Track
[hide private]
[frames] | no frames]

Class Track

source code

                  object --+    
                           |    
             base.LastfmBase --+
                               |
                  object --+   |
                           |   |
  mixins.cacheable.Cacheable --+
                               |
                  object --+   |
                           |   |
    mixins.sharable.Sharable --+
                               |
                  object --+   |
                           |   |
mixins.searchable.Searchable --+
                               |
                  object --+   |
                           |   |
    mixins.taggable.Taggable --+
                               |
                              Track

A class representing a track.

Instance Methods [hide private]
 
init(self, api, name=None, mbid=None, url=None, duration=None, streamable=None, full_track=None, artist=None, album=None, position=None, image=None, stats=None, played_on=None, loved_on=None, wiki=None) source code
 
love(self) source code
 
ban(self) source code
 
_default_params(self, extra_params={}) source code
 
_fill_info(self) 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
    Inherited from mixins.sharable.Sharable
 
share(self, recipient, message=None) source code
    Inherited from mixins.taggable.Taggable
 
add_tags(self, tags) source code
 
remove_tag(self, tag) source code
Class Methods [hide private]
    Inherited from mixins.searchable.Searchable
 
search(cls, api, search_item, limit=None, **kwds) source code
Static Methods [hide private]
 
get_info(api, artist=None, track=None, mbid=None) source code
 
_search_yield_func(api, track) source code
 
_fetch_data(api, artist=None, track=None, mbid=None) source code
 
_check_params(params, artist=None, track=None, mbid=None) 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]
  id
id of the track
  name
name of the track
  mbid
mbid of the track
  url
url of the tracks's page
  duration
duration of the tracks's page
  streamable
is the track streamable
  full_track
is the full track streamable
  artist
artist of the track
  album
artist of the track
  position
position of the track
  image
image of the track's album cover
  stats
stats of the track
  played_on
datetime the track was last played
  loved_on
datetime the track was marked 'loved'
  wiki
wiki of the track
  similar
tracks similar to this track
  most_similar
track most similar to this track
  top_fans
top fans of the track
  top_fan
topmost fan of the track
  top_tags
top tags for the track
  top_tag
topmost tag for the track

Inherited from object: __class__

    Inherited from mixins.taggable.Taggable
  tags
Method Details [hide private]

init(self, api, name=None, mbid=None, url=None, duration=None, streamable=None, full_track=None, artist=None, album=None, position=None, image=None, stats=None, played_on=None, loved_on=None, wiki=None)

source code 
Overrides: mixins.taggable.Taggable.init

_default_params(self, extra_params={})

source code 
Overrides: mixins.taggable.Taggable._default_params

_search_yield_func(api, track)
Static Method

source code 
Overrides: mixins.searchable.Searchable._search_yield_func

__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]

id

id of the track

Get Method:
unreachable.id(self) - id of the track

name

name of the track

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

mbid

mbid of the track

Get Method:
unreachable.mbid(self) - mbid of the track

url

url of the tracks's page

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

duration

duration of the tracks's page

Get Method:
unreachable.duration(self) - duration of the tracks's page

streamable

is the track streamable

Get Method:
unreachable.streamable(self) - is the track streamable

full_track

is the full track streamable

Get Method:
unreachable.full_track(self) - is the full track streamable

artist

artist of the track

Get Method:
unreachable.artist(self) - artist of the track

album

artist of the track

Get Method:
unreachable.album(self) - artist of the track

position

position of the track

Get Method:
unreachable.position(self) - position of the track

image

image of the track's album cover

Get Method:
unreachable.image(self) - image of the track's album cover

stats

stats of the track

Get Method:
unreachable.stats(self) - stats of the track

played_on

datetime the track was last played

Get Method:
unreachable.played_on(self) - datetime the track was last played

loved_on

datetime the track was marked 'loved'

Get Method:
unreachable.loved_on(self) - datetime the track was marked 'loved'

wiki

wiki of the track

Get Method:
unreachable.wiki(self) - wiki of the track

similar

tracks similar to this track

Get Method:
unreachable.wrapper(ob)

most_similar

track most similar to this track

Get Method:
unreachable.wrapper(ob)

top_fans

top fans of the track

Get Method:
unreachable.wrapper(ob)

top_fan

topmost fan of the track

Get Method:
unreachable.wrapper(ob)

top_tags

top tags for the track

Get Method:
unreachable.wrapper(ob)

top_tag

topmost tag for the track

Get Method:
unreachable.wrapper(ob)