Archived
3394 lines
232 KiB
HTML
3394 lines
232 KiB
HTML
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html><head><title>Python: module pylast</title>
|
|
</head><body bgcolor="#f0f0f8">
|
|
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
|
<tr bgcolor="#7799ee">
|
|
<td valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>pylast</strong></big></big> (version 0.5)</font></td
|
|
><td align=right valign=bottom
|
|
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/usr/lib/pymodules/python2.6/pylast.py">/usr/lib/pymodules/python2.6/pylast.py</a></font></td></tr></table>
|
|
<p><tt># -*- coding: utf-8 -*-<br>
|
|
#<br>
|
|
# pylast - A Python interface to Last.fm (and other API compatible social networks)<br>
|
|
#<br>
|
|
# Copyright 2008-2010 Amr Hassan<br>
|
|
#<br>
|
|
# Licensed under the Apache License, Version 2.0 (the "License");<br>
|
|
# you may not use this file except in compliance with the License.<br>
|
|
# You may obtain a copy of the License at<br>
|
|
#<br>
|
|
# <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a><br>
|
|
#<br>
|
|
# Unless required by applicable law or agreed to in writing, software<br>
|
|
# distributed under the License is distributed on an "AS IS" BASIS,<br>
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br>
|
|
# See the License for the specific language governing permissions and<br>
|
|
# limitations under the License.<br>
|
|
#<br>
|
|
# <a href="http://code.google.com/p/pylast/">http://code.google.com/p/pylast/</a></tt></p>
|
|
<p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#aa55cc">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
|
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="collections.html">collections</a><br>
|
|
<a href="hashlib.html">hashlib</a><br>
|
|
<a href="htmlentitydefs.html">htmlentitydefs</a><br>
|
|
</td><td width="25%" valign=top><a href="xml.dom.minidom.html">xml.dom.minidom</a><br>
|
|
<a href="shelve.html">shelve</a><br>
|
|
<a href="sys.html">sys</a><br>
|
|
</td><td width="25%" valign=top><a href="tempfile.html">tempfile</a><br>
|
|
<a href="time.html">time</a><br>
|
|
<a href="xml.html">xml</a><br>
|
|
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ee77aa">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl>
|
|
<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
|
|
</font></dt><dd>
|
|
<dl>
|
|
<dt><font face="helvetica, arial"><a href="pylast.html#Scrobbler">Scrobbler</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#SessionKeyGenerator">SessionKeyGenerator</a>
|
|
</font></dt></dl>
|
|
</dd>
|
|
<dt><font face="helvetica, arial"><a href="__builtin__.html#tuple">__builtin__.tuple</a>(<a href="__builtin__.html#object">__builtin__.object</a>)
|
|
</font></dt><dd>
|
|
<dl>
|
|
<dt><font face="helvetica, arial"><a href="pylast.html#Image">Image</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#ImageSizes">ImageSizes</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#LibraryItem">LibraryItem</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#LovedTrack">LovedTrack</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#PlayedTrack">PlayedTrack</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#Shout">Shout</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#SimilarItem">SimilarItem</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#TopItem">TopItem</a>
|
|
</font></dt></dl>
|
|
</dd>
|
|
<dt><font face="helvetica, arial"><a href="exceptions.html#Exception">exceptions.Exception</a>(<a href="exceptions.html#BaseException">exceptions.BaseException</a>)
|
|
</font></dt><dd>
|
|
<dl>
|
|
<dt><font face="helvetica, arial"><a href="pylast.html#MalformedResponseError">MalformedResponseError</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#NetworkError">NetworkError</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#ScrobblingError">ScrobblingError</a>
|
|
</font></dt><dd>
|
|
<dl>
|
|
<dt><font face="helvetica, arial"><a href="pylast.html#BadAuthenticationError">BadAuthenticationError</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#BadSessionError">BadSessionError</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#BadTimeError">BadTimeError</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#BannedClientError">BannedClientError</a>
|
|
</font></dt></dl>
|
|
</dd>
|
|
<dt><font face="helvetica, arial"><a href="pylast.html#WSError">WSError</a>
|
|
</font></dt></dl>
|
|
</dd>
|
|
<dt><font face="helvetica, arial"><a href="pylast.html#_BaseObject">_BaseObject</a>(<a href="__builtin__.html#object">__builtin__.object</a>)
|
|
</font></dt><dd>
|
|
<dl>
|
|
<dt><font face="helvetica, arial"><a href="pylast.html#Album">Album</a>(<a href="pylast.html#_BaseObject">_BaseObject</a>, <a href="pylast.html#_Taggable">_Taggable</a>)
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#Artist">Artist</a>(<a href="pylast.html#_BaseObject">_BaseObject</a>, <a href="pylast.html#_Taggable">_Taggable</a>)
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#Country">Country</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#Event">Event</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#Group">Group</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#Library">Library</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#Playlist">Playlist</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#Tag">Tag</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#Track">Track</a>(<a href="pylast.html#_BaseObject">_BaseObject</a>, <a href="pylast.html#_Taggable">_Taggable</a>)
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#User">User</a>
|
|
</font></dt><dd>
|
|
<dl>
|
|
<dt><font face="helvetica, arial"><a href="pylast.html#AuthenticatedUser">AuthenticatedUser</a>
|
|
</font></dt></dl>
|
|
</dd>
|
|
<dt><font face="helvetica, arial"><a href="pylast.html#Venue">Venue</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#XSPF">XSPF</a>
|
|
</font></dt></dl>
|
|
</dd>
|
|
<dt><font face="helvetica, arial"><a href="pylast.html#_Network">_Network</a>(<a href="__builtin__.html#object">__builtin__.object</a>)
|
|
</font></dt><dd>
|
|
<dl>
|
|
<dt><font face="helvetica, arial"><a href="pylast.html#LastFMNetwork">LastFMNetwork</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#LibreFMNetwork">LibreFMNetwork</a>
|
|
</font></dt></dl>
|
|
</dd>
|
|
<dt><font face="helvetica, arial"><a href="pylast.html#_Search">_Search</a>(<a href="pylast.html#_BaseObject">_BaseObject</a>)
|
|
</font></dt><dd>
|
|
<dl>
|
|
<dt><font face="helvetica, arial"><a href="pylast.html#AlbumSearch">AlbumSearch</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#ArtistSearch">ArtistSearch</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#TagSearch">TagSearch</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#TrackSearch">TrackSearch</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#VenueSearch">VenueSearch</a>
|
|
</font></dt></dl>
|
|
</dd>
|
|
<dt><font face="helvetica, arial"><a href="pylast.html#_Taggable">_Taggable</a>(<a href="__builtin__.html#object">__builtin__.object</a>)
|
|
</font></dt><dd>
|
|
<dl>
|
|
<dt><font face="helvetica, arial"><a href="pylast.html#Album">Album</a>(<a href="pylast.html#_BaseObject">_BaseObject</a>, <a href="pylast.html#_Taggable">_Taggable</a>)
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#Artist">Artist</a>(<a href="pylast.html#_BaseObject">_BaseObject</a>, <a href="pylast.html#_Taggable">_Taggable</a>)
|
|
</font></dt><dt><font face="helvetica, arial"><a href="pylast.html#Track">Track</a>(<a href="pylast.html#_BaseObject">_BaseObject</a>, <a href="pylast.html#_Taggable">_Taggable</a>)
|
|
</font></dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="Album">class <strong>Album</strong></a>(<a href="pylast.html#_BaseObject">_BaseObject</a>, <a href="pylast.html#_Taggable">_Taggable</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>An album.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#Album">Album</a></dd>
|
|
<dd><a href="pylast.html#_BaseObject">_BaseObject</a></dd>
|
|
<dd><a href="pylast.html#_Taggable">_Taggable</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="Album-__eq__"><strong>__eq__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="Album-__init__"><strong>__init__</strong></a>(self, artist, title, network)</dt><dd><tt>Create an album instance.<br>
|
|
# Parameters:<br>
|
|
* artist: An artist name or an <a href="#Artist">Artist</a> <a href="__builtin__.html#object">object</a>.<br>
|
|
* title: The album title.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Album-__ne__"><strong>__ne__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="Album-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="Album-__str__"><strong>__str__</strong></a> = r(*args)</dt></dl>
|
|
|
|
<dl><dt><a name="Album-get_artist"><strong>get_artist</strong></a>(self)</dt><dd><tt>Returns the associated <a href="#Artist">Artist</a> <a href="__builtin__.html#object">object</a>.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Album-get_cover_image"><strong>get_cover_image</strong></a>(self, size<font color="#909090">=3</font>)</dt><dd><tt>Returns a uri to the cover image<br>
|
|
size can be one of:<br>
|
|
COVER_EXTRA_LARGE<br>
|
|
COVER_LARGE<br>
|
|
COVER_MEDIUM<br>
|
|
COVER_SMALL</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Album-get_id"><strong>get_id</strong></a>(self)</dt><dd><tt>Returns the ID</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Album-get_listener_count"><strong>get_listener_count</strong></a>(self)</dt><dd><tt>Returns the number of liteners on the network</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Album-get_mbid"><strong>get_mbid</strong></a>(self)</dt><dd><tt>Returns the MusicBrainz id of the album.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Album-get_name"><strong>get_name</strong></a>(self)</dt><dd><tt>Returns the album title (alias to <a href="#Album">Album</a>.get_title).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Album-get_playcount"><strong>get_playcount</strong></a>(self)</dt><dd><tt>Returns the number of plays on the network</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Album-get_release_date"><strong>get_release_date</strong></a>(self)</dt><dd><tt>Retruns the release date of the album.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Album-get_title"><strong>get_title</strong></a>(self)</dt><dd><tt>Returns the album title.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Album-get_top_tags"><strong>get_top_tags</strong></a>(self, limit<font color="#909090">=None</font>)</dt><dd><tt>Returns a list of the most-applied tags to this album.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Album-get_tracks"><strong>get_tracks</strong></a>(self)</dt><dd><tt>Returns the list of Tracks on this album.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Album-get_url"><strong>get_url</strong></a>(self, domain_name<font color="#909090">=0</font>)</dt><dd><tt>Returns the url of the album page on the network. <br>
|
|
# Parameters:<br>
|
|
* domain_name str: The network's language domain. Possible values:<br>
|
|
o DOMAIN_ENGLISH<br>
|
|
o DOMAIN_GERMAN<br>
|
|
o DOMAIN_SPANISH<br>
|
|
o DOMAIN_FRENCH<br>
|
|
o DOMAIN_ITALIAN<br>
|
|
o DOMAIN_POLISH<br>
|
|
o DOMAIN_PORTUGUESE<br>
|
|
o DOMAIN_SWEDISH<br>
|
|
o DOMAIN_TURKISH<br>
|
|
o DOMAIN_RUSSIAN<br>
|
|
o DOMAIN_JAPANESE<br>
|
|
o DOMAIN_CHINESE</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Album-get_wiki_content"><strong>get_wiki_content</strong></a>(self)</dt><dd><tt>Returns the content of the wiki.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Album-get_wiki_published_date"><strong>get_wiki_published_date</strong></a>(self)</dt><dd><tt>Returns the date of publishing this version of the wiki.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Album-get_wiki_summary"><strong>get_wiki_summary</strong></a>(self)</dt><dd><tt>Returns the summary of the wiki.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data and other attributes defined here:<br>
|
|
<dl><dt><strong>artist</strong> = None</dl>
|
|
|
|
<dl><dt><strong>title</strong> = None</dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><a name="Album-__hash__"><strong>__hash__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>network</strong> = None</dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_Taggable">_Taggable</a>:<br>
|
|
<dl><dt><a name="Album-add_tag"><strong>add_tag</strong></a>(self, tag)</dt><dd><tt>Adds one tag.<br>
|
|
* tag: a tag name or a <a href="#Tag">Tag</a> <a href="__builtin__.html#object">object</a>.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Album-add_tags"><strong>add_tags</strong></a>(self, tags)</dt><dd><tt>Adds one or several tags.<br>
|
|
* tags: A sequence of tag names or <a href="#Tag">Tag</a> objects.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Album-clear_tags"><strong>clear_tags</strong></a>(self)</dt><dd><tt>Clears all the user-set tags.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Album-get_tags"><strong>get_tags</strong></a>(self)</dt><dd><tt>Returns a list of the tags set by the user to this <a href="__builtin__.html#object">object</a>.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Album-remove_tag"><strong>remove_tag</strong></a>(self, tag)</dt><dd><tt>Remove a user's tag from this <a href="__builtin__.html#object">object</a>.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Album-remove_tags"><strong>remove_tags</strong></a>(self, tags)</dt><dd><tt>Removes one or several tags from this <a href="__builtin__.html#object">object</a>.<br>
|
|
* tags: a sequence of tag names or <a href="#Tag">Tag</a> objects.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Album-set_tags"><strong>set_tags</strong></a>(self, tags)</dt><dd><tt>Sets this <a href="__builtin__.html#object">object</a>'s tags to only those tags.<br>
|
|
* tags: a sequence of tag names or <a href="#Tag">Tag</a> objects.</tt></dd></dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="AlbumSearch">class <strong>AlbumSearch</strong></a>(<a href="pylast.html#_Search">_Search</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>Search for an album by name.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#AlbumSearch">AlbumSearch</a></dd>
|
|
<dd><a href="pylast.html#_Search">_Search</a></dd>
|
|
<dd><a href="pylast.html#_BaseObject">_BaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="AlbumSearch-__init__"><strong>__init__</strong></a>(self, album_name, network)</dt></dl>
|
|
|
|
<dl><dt><a name="AlbumSearch-get_next_page"><strong>get_next_page</strong></a>(self)</dt><dd><tt>Returns the next page of results as a sequence of <a href="#Album">Album</a> objects.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_Search">_Search</a>:<br>
|
|
<dl><dt><a name="AlbumSearch-get_total_result_count"><strong>get_total_result_count</strong></a>(self)</dt><dd><tt>Returns the total count of all the results.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><a name="AlbumSearch-__hash__"><strong>__hash__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>network</strong> = None</dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="Artist">class <strong>Artist</strong></a>(<a href="pylast.html#_BaseObject">_BaseObject</a>, <a href="pylast.html#_Taggable">_Taggable</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>An artist.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#Artist">Artist</a></dd>
|
|
<dd><a href="pylast.html#_BaseObject">_BaseObject</a></dd>
|
|
<dd><a href="pylast.html#_Taggable">_Taggable</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="Artist-__eq__"><strong>__eq__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="Artist-__init__"><strong>__init__</strong></a>(self, name, network)</dt><dd><tt>Create an artist <a href="__builtin__.html#object">object</a>.<br>
|
|
# Parameters:<br>
|
|
* name str: The artist's name.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-__ne__"><strong>__ne__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="Artist-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="Artist-__str__"><strong>__str__</strong></a> = r(*args)</dt></dl>
|
|
|
|
<dl><dt><a name="Artist-get_bio_content"><strong>get_bio_content</strong></a>(self)</dt><dd><tt>Returns the content of the artist's biography.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-get_bio_published_date"><strong>get_bio_published_date</strong></a>(self)</dt><dd><tt>Returns the date on which the artist's biography was published.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-get_bio_summary"><strong>get_bio_summary</strong></a>(self)</dt><dd><tt>Returns the summary of the artist's biography.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-get_cover_image"><strong>get_cover_image</strong></a>(self, size<font color="#909090">=4</font>)</dt><dd><tt>Returns a uri to the cover image<br>
|
|
size can be one of:<br>
|
|
COVER_MEGA<br>
|
|
COVER_EXTRA_LARGE<br>
|
|
COVER_LARGE<br>
|
|
COVER_MEDIUM<br>
|
|
COVER_SMALL</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-get_images"><strong>get_images</strong></a>(self, order<font color="#909090">='popularity'</font>, limit<font color="#909090">=None</font>)</dt><dd><tt>Returns a sequence of <a href="#Image">Image</a> objects<br>
|
|
if limit is None it will return all<br>
|
|
order can be IMAGES_ORDER_POPULARITY or IMAGES_ORDER_DATE.<br>
|
|
<br>
|
|
If limit==None, it will try to pull all the available data.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-get_listener_count"><strong>get_listener_count</strong></a>(self)</dt><dd><tt>Returns the number of liteners on the network.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-get_mbid"><strong>get_mbid</strong></a>(self)</dt><dd><tt>Returns the MusicBrainz ID of this artist.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-get_name"><strong>get_name</strong></a>(self, properly_capitalized<font color="#909090">=False</font>)</dt><dd><tt>Returns the name of the artist.<br>
|
|
If properly_capitalized was asserted then the name would be downloaded<br>
|
|
overwriting the given one.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-get_playcount"><strong>get_playcount</strong></a>(self)</dt><dd><tt>Returns the number of plays on the network.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-get_shouts"><strong>get_shouts</strong></a>(self, limit<font color="#909090">=50</font>)</dt><dd><tt>Returns a sequqence of <a href="#Shout">Shout</a> objects</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-get_similar"><strong>get_similar</strong></a>(self, limit<font color="#909090">=None</font>)</dt><dd><tt>Returns the similar artists on the network.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-get_top_albums"><strong>get_top_albums</strong></a>(self)</dt><dd><tt>Retuns a list of the top albums.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-get_top_fans"><strong>get_top_fans</strong></a>(self, limit<font color="#909090">=None</font>)</dt><dd><tt>Returns a list of the Users who played this artist the most.<br>
|
|
# Parameters:<br>
|
|
* limit int: Max elements.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-get_top_tracks"><strong>get_top_tracks</strong></a>(self)</dt><dd><tt>Returns a list of the most played Tracks by this artist.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-get_upcoming_events"><strong>get_upcoming_events</strong></a>(self)</dt><dd><tt>Returns a list of the upcoming Events for this artist.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-get_url"><strong>get_url</strong></a>(self, domain_name<font color="#909090">=0</font>)</dt><dd><tt>Returns the url of the artist page on the network. <br>
|
|
# Parameters:<br>
|
|
* domain_name: The network's language domain. Possible values:<br>
|
|
o DOMAIN_ENGLISH<br>
|
|
o DOMAIN_GERMAN<br>
|
|
o DOMAIN_SPANISH<br>
|
|
o DOMAIN_FRENCH<br>
|
|
o DOMAIN_ITALIAN<br>
|
|
o DOMAIN_POLISH<br>
|
|
o DOMAIN_PORTUGUESE<br>
|
|
o DOMAIN_SWEDISH<br>
|
|
o DOMAIN_TURKISH<br>
|
|
o DOMAIN_RUSSIAN<br>
|
|
o DOMAIN_JAPANESE<br>
|
|
o DOMAIN_CHINESE</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-is_streamable"><strong>is_streamable</strong></a>(self)</dt><dd><tt>Returns True if the artist is streamable.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-share"><strong>share</strong></a>(self, users, message<font color="#909090">=None</font>)</dt><dd><tt>Shares this artist (sends out recommendations). <br>
|
|
# Parameters:<br>
|
|
* users [<a href="#User">User</a>|str,]: A list that can contain usernames, emails, <a href="#User">User</a> objects, or all of them.<br>
|
|
* message str: A message to include in the recommendation message.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-shout"><strong>shout</strong></a>(self, message)</dt><dd><tt>Post a shout</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data and other attributes defined here:<br>
|
|
<dl><dt><strong>name</strong> = None</dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><a name="Artist-__hash__"><strong>__hash__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>network</strong> = None</dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_Taggable">_Taggable</a>:<br>
|
|
<dl><dt><a name="Artist-add_tag"><strong>add_tag</strong></a>(self, tag)</dt><dd><tt>Adds one tag.<br>
|
|
* tag: a tag name or a <a href="#Tag">Tag</a> <a href="__builtin__.html#object">object</a>.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-add_tags"><strong>add_tags</strong></a>(self, tags)</dt><dd><tt>Adds one or several tags.<br>
|
|
* tags: A sequence of tag names or <a href="#Tag">Tag</a> objects.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-clear_tags"><strong>clear_tags</strong></a>(self)</dt><dd><tt>Clears all the user-set tags.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-get_tags"><strong>get_tags</strong></a>(self)</dt><dd><tt>Returns a list of the tags set by the user to this <a href="__builtin__.html#object">object</a>.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-get_top_tags"><strong>get_top_tags</strong></a>(self, limit<font color="#909090">=None</font>)</dt><dd><tt>Returns a list of the most frequently used Tags on this <a href="__builtin__.html#object">object</a>.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-remove_tag"><strong>remove_tag</strong></a>(self, tag)</dt><dd><tt>Remove a user's tag from this <a href="__builtin__.html#object">object</a>.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-remove_tags"><strong>remove_tags</strong></a>(self, tags)</dt><dd><tt>Removes one or several tags from this <a href="__builtin__.html#object">object</a>.<br>
|
|
* tags: a sequence of tag names or <a href="#Tag">Tag</a> objects.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Artist-set_tags"><strong>set_tags</strong></a>(self, tags)</dt><dd><tt>Sets this <a href="__builtin__.html#object">object</a>'s tags to only those tags.<br>
|
|
* tags: a sequence of tag names or <a href="#Tag">Tag</a> objects.</tt></dd></dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="ArtistSearch">class <strong>ArtistSearch</strong></a>(<a href="pylast.html#_Search">_Search</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>Search for an artist by artist name.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#ArtistSearch">ArtistSearch</a></dd>
|
|
<dd><a href="pylast.html#_Search">_Search</a></dd>
|
|
<dd><a href="pylast.html#_BaseObject">_BaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="ArtistSearch-__init__"><strong>__init__</strong></a>(self, artist_name, network)</dt></dl>
|
|
|
|
<dl><dt><a name="ArtistSearch-get_next_page"><strong>get_next_page</strong></a>(self)</dt><dd><tt>Returns the next page of results as a sequence of <a href="#Artist">Artist</a> objects.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_Search">_Search</a>:<br>
|
|
<dl><dt><a name="ArtistSearch-get_total_result_count"><strong>get_total_result_count</strong></a>(self)</dt><dd><tt>Returns the total count of all the results.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><a name="ArtistSearch-__hash__"><strong>__hash__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>network</strong> = None</dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="AuthenticatedUser">class <strong>AuthenticatedUser</strong></a>(<a href="pylast.html#User">User</a>)</font></td></tr>
|
|
|
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#AuthenticatedUser">AuthenticatedUser</a></dd>
|
|
<dd><a href="pylast.html#User">User</a></dd>
|
|
<dd><a href="pylast.html#_BaseObject">_BaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="AuthenticatedUser-__init__"><strong>__init__</strong></a>(self, network)</dt></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_name"><strong>get_name</strong></a>(self)</dt><dd><tt>Returns the name of the authenticated user.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_recommended_artists"><strong>get_recommended_artists</strong></a>(self, limit<font color="#909090">=50</font>)</dt><dd><tt>Returns a sequence of <a href="#Event">Event</a> objects<br>
|
|
if limit==None it will return all</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_recommended_events"><strong>get_recommended_events</strong></a>(self, limit<font color="#909090">=50</font>)</dt><dd><tt>Returns a sequence of <a href="#Event">Event</a> objects<br>
|
|
if limit==None it will return all</tt></dd></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#User">User</a>:<br>
|
|
<dl><dt><a name="AuthenticatedUser-__eq__"><strong>__eq__</strong></a>(self, another)</dt></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-__ne__"><strong>__ne__</strong></a>(self, another)</dt></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-__str__"><strong>__str__</strong></a> = r(*args)</dt></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-compare_with_user"><strong>compare_with_user</strong></a>(self, user, shared_artists_limit<font color="#909090">=None</font>)</dt><dd><tt>Compare this user with another Last.fm user.<br>
|
|
Returns a sequence (tasteometer_score, (shared_artist1, shared_artist2, ...))<br>
|
|
user: A <a href="#User">User</a> <a href="__builtin__.html#object">object</a> or a username string/unicode <a href="__builtin__.html#object">object</a>.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_age"><strong>get_age</strong></a>(self)</dt><dd><tt>Returns the user's age.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_country"><strong>get_country</strong></a>(self)</dt><dd><tt>Returns the name of the country of the user.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_friends"><strong>get_friends</strong></a>(self, limit<font color="#909090">=50</font>)</dt><dd><tt>Returns a list of the user's friends.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_gender"><strong>get_gender</strong></a>(self)</dt><dd><tt>Returns the user's gender. Either USER_MALE or USER_FEMALE.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_id"><strong>get_id</strong></a>(self)</dt><dd><tt>Returns the user id.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_image"><strong>get_image</strong></a>(self)</dt><dd><tt>Returns the user's avatar.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_language"><strong>get_language</strong></a>(self)</dt><dd><tt>Returns the language code of the language used by the user.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_library"><strong>get_library</strong></a>(self)</dt><dd><tt>Returns the associated <a href="#Library">Library</a> <a href="__builtin__.html#object">object</a>.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_loved_tracks"><strong>get_loved_tracks</strong></a>(self, limit<font color="#909090">=50</font>)</dt><dd><tt>Returns this user's loved track as a sequence of <a href="#LovedTrack">LovedTrack</a> objects<br>
|
|
in reverse order of their timestamp, all the way back to the first track.<br>
|
|
<br>
|
|
If limit==None, it will try to pull all the available data.<br>
|
|
<br>
|
|
This method uses caching. Enable caching only if you're pulling a<br>
|
|
large amount of data.<br>
|
|
<br>
|
|
Use <a href="#-extract_items">extract_items</a>() with the return of this function to<br>
|
|
get only a sequence of <a href="#Track">Track</a> objects with no playback dates.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_neighbours"><strong>get_neighbours</strong></a>(self, limit<font color="#909090">=50</font>)</dt><dd><tt>Returns a list of the user's friends.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_now_playing"><strong>get_now_playing</strong></a>(self)</dt><dd><tt>Returns the currently playing track, or None if nothing is playing.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_past_events"><strong>get_past_events</strong></a>(self, limit<font color="#909090">=50</font>)</dt><dd><tt>Returns a sequence of <a href="#Event">Event</a> objects<br>
|
|
if limit==None it will return all</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_playcount"><strong>get_playcount</strong></a>(self)</dt><dd><tt>Returns the user's playcount so far.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_playlists"><strong>get_playlists</strong></a>(self)</dt><dd><tt>Returns a list of Playlists that this user owns.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_recent_tracks"><strong>get_recent_tracks</strong></a>(self, limit<font color="#909090">=10</font>)</dt><dd><tt>Returns this user's played track as a sequence of <a href="#PlayedTrack">PlayedTrack</a> objects<br>
|
|
in reverse order of their playtime, all the way back to the first track.<br>
|
|
<br>
|
|
If limit==None, it will try to pull all the available data.<br>
|
|
<br>
|
|
This method uses caching. Enable caching only if you're pulling a<br>
|
|
large amount of data.<br>
|
|
<br>
|
|
Use <a href="#-extract_items">extract_items</a>() with the return of this function to<br>
|
|
get only a sequence of <a href="#Track">Track</a> objects with no playback dates.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_shouts"><strong>get_shouts</strong></a>(self, limit<font color="#909090">=50</font>)</dt><dd><tt>Returns a sequqence of <a href="#Shout">Shout</a> objects</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_top_albums"><strong>get_top_albums</strong></a>(self, period<font color="#909090">='overall'</font>)</dt><dd><tt>Returns the top albums played by a user. <br>
|
|
* period: The period of time. Possible values:<br>
|
|
o PERIOD_OVERALL<br>
|
|
o PERIOD_7DAYS<br>
|
|
o PERIOD_3MONTHS<br>
|
|
o PERIOD_6MONTHS<br>
|
|
o PERIOD_12MONTHS</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_top_artists"><strong>get_top_artists</strong></a>(self, period<font color="#909090">='overall'</font>)</dt><dd><tt>Returns the top artists played by a user. <br>
|
|
* period: The period of time. Possible values:<br>
|
|
o PERIOD_OVERALL<br>
|
|
o PERIOD_7DAYS<br>
|
|
o PERIOD_3MONTHS<br>
|
|
o PERIOD_6MONTHS<br>
|
|
o PERIOD_12MONTHS</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_top_tags"><strong>get_top_tags</strong></a>(self, limit<font color="#909090">=None</font>)</dt><dd><tt>Returns a sequence of the top tags used by this user with their counts as (<a href="#Tag">Tag</a>, tagcount). <br>
|
|
* limit: The limit of how many tags to return.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_top_tracks"><strong>get_top_tracks</strong></a>(self, period<font color="#909090">='overall'</font>)</dt><dd><tt>Returns the top tracks played by a user. <br>
|
|
* period: The period of time. Possible values:<br>
|
|
o PERIOD_OVERALL<br>
|
|
o PERIOD_7DAYS<br>
|
|
o PERIOD_3MONTHS<br>
|
|
o PERIOD_6MONTHS<br>
|
|
o PERIOD_12MONTHS</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_upcoming_events"><strong>get_upcoming_events</strong></a>(self)</dt><dd><tt>Returns all the upcoming events for this user.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_url"><strong>get_url</strong></a>(self, domain_name<font color="#909090">=0</font>)</dt><dd><tt>Returns the url of the user page on the network. <br>
|
|
* domain_name: The network's language domain. Possible values:<br>
|
|
o DOMAIN_ENGLISH<br>
|
|
o DOMAIN_GERMAN<br>
|
|
o DOMAIN_SPANISH<br>
|
|
o DOMAIN_FRENCH<br>
|
|
o DOMAIN_ITALIAN<br>
|
|
o DOMAIN_POLISH<br>
|
|
o DOMAIN_PORTUGUESE<br>
|
|
o DOMAIN_SWEDISH<br>
|
|
o DOMAIN_TURKISH<br>
|
|
o DOMAIN_RUSSIAN<br>
|
|
o DOMAIN_JAPANESE<br>
|
|
o DOMAIN_CHINESE</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_weekly_album_charts"><strong>get_weekly_album_charts</strong></a>(self, from_date<font color="#909090">=None</font>, to_date<font color="#909090">=None</font>)</dt><dd><tt>Returns the weekly album charts for the week starting from the from_date value to the to_date value.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_weekly_artist_charts"><strong>get_weekly_artist_charts</strong></a>(self, from_date<font color="#909090">=None</font>, to_date<font color="#909090">=None</font>)</dt><dd><tt>Returns the weekly artist charts for the week starting from the from_date value to the to_date value.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_weekly_chart_dates"><strong>get_weekly_chart_dates</strong></a>(self)</dt><dd><tt>Returns a list of From and To tuples for the available charts.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-get_weekly_track_charts"><strong>get_weekly_track_charts</strong></a>(self, from_date<font color="#909090">=None</font>, to_date<font color="#909090">=None</font>)</dt><dd><tt>Returns the weekly track charts for the week starting from the from_date value to the to_date value.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-is_subscriber"><strong>is_subscriber</strong></a>(self)</dt><dd><tt>Returns whether the user is a subscriber or not. True or False.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="AuthenticatedUser-shout"><strong>shout</strong></a>(self, message)</dt><dd><tt>Post a shout</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="pylast.html#User">User</a>:<br>
|
|
<dl><dt><strong>name</strong> = None</dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><a name="AuthenticatedUser-__hash__"><strong>__hash__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>network</strong> = None</dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="BadAuthenticationError">class <strong>BadAuthenticationError</strong></a>(<a href="pylast.html#ScrobblingError">ScrobblingError</a>)</font></td></tr>
|
|
|
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#BadAuthenticationError">BadAuthenticationError</a></dd>
|
|
<dd><a href="pylast.html#ScrobblingError">ScrobblingError</a></dd>
|
|
<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
|
|
<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="BadAuthenticationError-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#ScrobblingError">ScrobblingError</a>:<br>
|
|
<dl><dt><a name="BadAuthenticationError-__str__"><strong>__str__</strong></a> = r(*args)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#ScrobblingError">ScrobblingError</a>:<br>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
|
|
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#BadAuthenticationError-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
|
|
<dl><dt><a name="BadAuthenticationError-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#BadAuthenticationError-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BadAuthenticationError-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#BadAuthenticationError-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BadAuthenticationError-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#BadAuthenticationError-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BadAuthenticationError-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#BadAuthenticationError-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br>
|
|
<br>
|
|
Use of negative indices is not supported.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BadAuthenticationError-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
|
|
|
|
<dl><dt><a name="BadAuthenticationError-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#BadAuthenticationError-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BadAuthenticationError-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#BadAuthenticationError-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BadAuthenticationError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
|
|
|
|
<dl><dt><a name="BadAuthenticationError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
</dl>
|
|
<dl><dt><strong>args</strong></dt>
|
|
</dl>
|
|
<dl><dt><strong>message</strong></dt>
|
|
</dl>
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="BadSessionError">class <strong>BadSessionError</strong></a>(<a href="pylast.html#ScrobblingError">ScrobblingError</a>)</font></td></tr>
|
|
|
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#BadSessionError">BadSessionError</a></dd>
|
|
<dd><a href="pylast.html#ScrobblingError">ScrobblingError</a></dd>
|
|
<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
|
|
<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="BadSessionError-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#ScrobblingError">ScrobblingError</a>:<br>
|
|
<dl><dt><a name="BadSessionError-__str__"><strong>__str__</strong></a> = r(*args)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#ScrobblingError">ScrobblingError</a>:<br>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
|
|
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#BadSessionError-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
|
|
<dl><dt><a name="BadSessionError-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#BadSessionError-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BadSessionError-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#BadSessionError-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BadSessionError-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#BadSessionError-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BadSessionError-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#BadSessionError-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br>
|
|
<br>
|
|
Use of negative indices is not supported.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BadSessionError-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
|
|
|
|
<dl><dt><a name="BadSessionError-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#BadSessionError-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BadSessionError-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#BadSessionError-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BadSessionError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
|
|
|
|
<dl><dt><a name="BadSessionError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
</dl>
|
|
<dl><dt><strong>args</strong></dt>
|
|
</dl>
|
|
<dl><dt><strong>message</strong></dt>
|
|
</dl>
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="BadTimeError">class <strong>BadTimeError</strong></a>(<a href="pylast.html#ScrobblingError">ScrobblingError</a>)</font></td></tr>
|
|
|
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#BadTimeError">BadTimeError</a></dd>
|
|
<dd><a href="pylast.html#ScrobblingError">ScrobblingError</a></dd>
|
|
<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
|
|
<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="BadTimeError-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#ScrobblingError">ScrobblingError</a>:<br>
|
|
<dl><dt><a name="BadTimeError-__str__"><strong>__str__</strong></a> = r(*args)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#ScrobblingError">ScrobblingError</a>:<br>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
|
|
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#BadTimeError-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
|
|
<dl><dt><a name="BadTimeError-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#BadTimeError-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BadTimeError-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#BadTimeError-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BadTimeError-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#BadTimeError-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BadTimeError-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#BadTimeError-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br>
|
|
<br>
|
|
Use of negative indices is not supported.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BadTimeError-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
|
|
|
|
<dl><dt><a name="BadTimeError-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#BadTimeError-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BadTimeError-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#BadTimeError-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BadTimeError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
|
|
|
|
<dl><dt><a name="BadTimeError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
</dl>
|
|
<dl><dt><strong>args</strong></dt>
|
|
</dl>
|
|
<dl><dt><strong>message</strong></dt>
|
|
</dl>
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="BannedClientError">class <strong>BannedClientError</strong></a>(<a href="pylast.html#ScrobblingError">ScrobblingError</a>)</font></td></tr>
|
|
|
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#BannedClientError">BannedClientError</a></dd>
|
|
<dd><a href="pylast.html#ScrobblingError">ScrobblingError</a></dd>
|
|
<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
|
|
<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="BannedClientError-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#ScrobblingError">ScrobblingError</a>:<br>
|
|
<dl><dt><a name="BannedClientError-__str__"><strong>__str__</strong></a> = r(*args)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#ScrobblingError">ScrobblingError</a>:<br>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
|
|
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#BannedClientError-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
|
|
<dl><dt><a name="BannedClientError-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#BannedClientError-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BannedClientError-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#BannedClientError-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BannedClientError-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#BannedClientError-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BannedClientError-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#BannedClientError-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br>
|
|
<br>
|
|
Use of negative indices is not supported.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BannedClientError-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
|
|
|
|
<dl><dt><a name="BannedClientError-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#BannedClientError-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BannedClientError-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#BannedClientError-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BannedClientError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
|
|
|
|
<dl><dt><a name="BannedClientError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
</dl>
|
|
<dl><dt><strong>args</strong></dt>
|
|
</dl>
|
|
<dl><dt><strong>message</strong></dt>
|
|
</dl>
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="Country">class <strong>Country</strong></a>(<a href="pylast.html#_BaseObject">_BaseObject</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>A country at Last.fm.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#Country">Country</a></dd>
|
|
<dd><a href="pylast.html#_BaseObject">_BaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="Country-__eq__"><strong>__eq__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="Country-__init__"><strong>__init__</strong></a>(self, name, network)</dt></dl>
|
|
|
|
<dl><dt><a name="Country-__ne__"><strong>__ne__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="Country-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="Country-__str__"><strong>__str__</strong></a> = r(*args)</dt></dl>
|
|
|
|
<dl><dt><a name="Country-get_name"><strong>get_name</strong></a>(self)</dt><dd><tt>Returns the country name.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Country-get_top_artists"><strong>get_top_artists</strong></a>(self)</dt><dd><tt>Returns a sequence of the most played artists.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Country-get_top_tracks"><strong>get_top_tracks</strong></a>(self)</dt><dd><tt>Returns a sequence of the most played tracks</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Country-get_url"><strong>get_url</strong></a>(self, domain_name<font color="#909090">=0</font>)</dt><dd><tt>Returns the url of the event page on the network. <br>
|
|
* domain_name: The network's language domain. Possible values:<br>
|
|
o DOMAIN_ENGLISH<br>
|
|
o DOMAIN_GERMAN<br>
|
|
o DOMAIN_SPANISH<br>
|
|
o DOMAIN_FRENCH<br>
|
|
o DOMAIN_ITALIAN<br>
|
|
o DOMAIN_POLISH<br>
|
|
o DOMAIN_PORTUGUESE<br>
|
|
o DOMAIN_SWEDISH<br>
|
|
o DOMAIN_TURKISH<br>
|
|
o DOMAIN_RUSSIAN<br>
|
|
o DOMAIN_JAPANESE<br>
|
|
o DOMAIN_CHINESE</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data and other attributes defined here:<br>
|
|
<dl><dt><strong>name</strong> = None</dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><a name="Country-__hash__"><strong>__hash__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>network</strong> = None</dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="Event">class <strong>Event</strong></a>(<a href="pylast.html#_BaseObject">_BaseObject</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>An event.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#Event">Event</a></dd>
|
|
<dd><a href="pylast.html#_BaseObject">_BaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="Event-__eq__"><strong>__eq__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="Event-__init__"><strong>__init__</strong></a>(self, event_id, network)</dt></dl>
|
|
|
|
<dl><dt><a name="Event-__ne__"><strong>__ne__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="Event-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="Event-__str__"><strong>__str__</strong></a> = r(*args)</dt></dl>
|
|
|
|
<dl><dt><a name="Event-attend"><strong>attend</strong></a>(self, attending_status)</dt><dd><tt>Sets the attending status.<br>
|
|
* attending_status: The attending status. Possible values:<br>
|
|
o EVENT_ATTENDING<br>
|
|
o EVENT_MAYBE_ATTENDING<br>
|
|
o EVENT_NOT_ATTENDING</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Event-get_artists"><strong>get_artists</strong></a>(self)</dt><dd><tt>Returns a list of the participating Artists.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Event-get_attendance_count"><strong>get_attendance_count</strong></a>(self)</dt><dd><tt>Returns the number of attending people.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Event-get_attendees"><strong>get_attendees</strong></a>(self)</dt><dd><tt>Get a list of attendees for an event</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Event-get_cover_image"><strong>get_cover_image</strong></a>(self, size<font color="#909090">=4</font>)</dt><dd><tt>Returns a uri to the cover image<br>
|
|
size can be one of:<br>
|
|
COVER_MEGA<br>
|
|
COVER_EXTRA_LARGE<br>
|
|
COVER_LARGE<br>
|
|
COVER_MEDIUM<br>
|
|
COVER_SMALL</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Event-get_description"><strong>get_description</strong></a>(self)</dt><dd><tt>Returns the description of the event.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Event-get_headliner"><strong>get_headliner</strong></a>(self)</dt><dd><tt>Returns the headliner of the event.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Event-get_id"><strong>get_id</strong></a>(self)</dt><dd><tt>Returns the id of the event on the network.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Event-get_review_count"><strong>get_review_count</strong></a>(self)</dt><dd><tt>Returns the number of available reviews for this event.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Event-get_shouts"><strong>get_shouts</strong></a>(self, limit<font color="#909090">=50</font>)</dt><dd><tt>Returns a sequqence of <a href="#Shout">Shout</a> objects</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Event-get_start_date"><strong>get_start_date</strong></a>(self)</dt><dd><tt>Returns the date when the event starts.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Event-get_title"><strong>get_title</strong></a>(self)</dt><dd><tt>Returns the title of the event.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Event-get_url"><strong>get_url</strong></a>(self, domain_name<font color="#909090">=0</font>)</dt><dd><tt>Returns the url of the event page on the network. <br>
|
|
* domain_name: The network's language domain. Possible values:<br>
|
|
o DOMAIN_ENGLISH<br>
|
|
o DOMAIN_GERMAN<br>
|
|
o DOMAIN_SPANISH<br>
|
|
o DOMAIN_FRENCH<br>
|
|
o DOMAIN_ITALIAN<br>
|
|
o DOMAIN_POLISH<br>
|
|
o DOMAIN_PORTUGUESE<br>
|
|
o DOMAIN_SWEDISH<br>
|
|
o DOMAIN_TURKISH<br>
|
|
o DOMAIN_RUSSIAN<br>
|
|
o DOMAIN_JAPANESE<br>
|
|
o DOMAIN_CHINESE</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Event-get_venue"><strong>get_venue</strong></a>(self)</dt><dd><tt>Returns the venue where the event is held.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Event-share"><strong>share</strong></a>(self, users, message<font color="#909090">=None</font>)</dt><dd><tt>Shares this event (sends out recommendations). <br>
|
|
* users: A list that can contain usernames, emails, <a href="#User">User</a> objects, or all of them.<br>
|
|
* message: A message to include in the recommendation message.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Event-shout"><strong>shout</strong></a>(self, message)</dt><dd><tt>Post a shout</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data and other attributes defined here:<br>
|
|
<dl><dt><strong>id</strong> = None</dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><a name="Event-__hash__"><strong>__hash__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>network</strong> = None</dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="Group">class <strong>Group</strong></a>(<a href="pylast.html#_BaseObject">_BaseObject</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>A Last.fm group.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#Group">Group</a></dd>
|
|
<dd><a href="pylast.html#_BaseObject">_BaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="Group-__eq__"><strong>__eq__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="Group-__init__"><strong>__init__</strong></a>(self, group_name, network)</dt></dl>
|
|
|
|
<dl><dt><a name="Group-__ne__"><strong>__ne__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="Group-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="Group-__str__"><strong>__str__</strong></a> = r(*args)</dt></dl>
|
|
|
|
<dl><dt><a name="Group-get_members"><strong>get_members</strong></a>(self, limit<font color="#909090">=50</font>)</dt><dd><tt>Returns a sequence of <a href="#User">User</a> objects<br>
|
|
if limit==None it will return all</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Group-get_name"><strong>get_name</strong></a>(self)</dt><dd><tt>Returns the group name.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Group-get_url"><strong>get_url</strong></a>(self, domain_name<font color="#909090">=0</font>)</dt><dd><tt>Returns the url of the group page on the network. <br>
|
|
* domain_name: The network's language domain. Possible values:<br>
|
|
o DOMAIN_ENGLISH<br>
|
|
o DOMAIN_GERMAN<br>
|
|
o DOMAIN_SPANISH<br>
|
|
o DOMAIN_FRENCH<br>
|
|
o DOMAIN_ITALIAN<br>
|
|
o DOMAIN_POLISH<br>
|
|
o DOMAIN_PORTUGUESE<br>
|
|
o DOMAIN_SWEDISH<br>
|
|
o DOMAIN_TURKISH<br>
|
|
o DOMAIN_RUSSIAN<br>
|
|
o DOMAIN_JAPANESE<br>
|
|
o DOMAIN_CHINESE</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Group-get_weekly_album_charts"><strong>get_weekly_album_charts</strong></a>(self, from_date<font color="#909090">=None</font>, to_date<font color="#909090">=None</font>)</dt><dd><tt>Returns the weekly album charts for the week starting from the from_date value to the to_date value.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Group-get_weekly_artist_charts"><strong>get_weekly_artist_charts</strong></a>(self, from_date<font color="#909090">=None</font>, to_date<font color="#909090">=None</font>)</dt><dd><tt>Returns the weekly artist charts for the week starting from the from_date value to the to_date value.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Group-get_weekly_chart_dates"><strong>get_weekly_chart_dates</strong></a>(self)</dt><dd><tt>Returns a list of From and To tuples for the available charts.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Group-get_weekly_track_charts"><strong>get_weekly_track_charts</strong></a>(self, from_date<font color="#909090">=None</font>, to_date<font color="#909090">=None</font>)</dt><dd><tt>Returns the weekly track charts for the week starting from the from_date value to the to_date value.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data and other attributes defined here:<br>
|
|
<dl><dt><strong>name</strong> = None</dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><a name="Group-__hash__"><strong>__hash__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>network</strong> = None</dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="Image">class <strong>Image</strong></a>(<a href="__builtin__.html#tuple">__builtin__.tuple</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt><a href="#Image">Image</a>(title, url, dateadded, format, owner, sizes, votes)<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#Image">Image</a></dd>
|
|
<dd><a href="__builtin__.html#tuple">__builtin__.tuple</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="Image-__getnewargs__"><strong>__getnewargs__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="Image-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Static methods defined here:<br>
|
|
<dl><dt><a name="Image-__new__"><strong>__new__</strong></a>(_cls, title, url, dateadded, format, owner, sizes, votes)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors defined here:<br>
|
|
<dl><dt><strong>dateadded</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>format</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>owner</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>sizes</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>title</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>url</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>votes</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods inherited from <a href="__builtin__.html#tuple">__builtin__.tuple</a>:<br>
|
|
<dl><dt><a name="Image-__add__"><strong>__add__</strong></a>(...)</dt><dd><tt>x.<a href="#Image-__add__">__add__</a>(y) <==> x+y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Image-__contains__"><strong>__contains__</strong></a>(...)</dt><dd><tt>x.<a href="#Image-__contains__">__contains__</a>(y) <==> y in x</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Image-__eq__"><strong>__eq__</strong></a>(...)</dt><dd><tt>x.<a href="#Image-__eq__">__eq__</a>(y) <==> x==y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Image-__ge__"><strong>__ge__</strong></a>(...)</dt><dd><tt>x.<a href="#Image-__ge__">__ge__</a>(y) <==> x>=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Image-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#Image-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Image-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#Image-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Image-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#Image-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br>
|
|
<br>
|
|
Use of negative indices is not supported.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Image-__gt__"><strong>__gt__</strong></a>(...)</dt><dd><tt>x.<a href="#Image-__gt__">__gt__</a>(y) <==> x>y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Image-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#Image-__hash__">__hash__</a>() <==> hash(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Image-__iter__"><strong>__iter__</strong></a>(...)</dt><dd><tt>x.<a href="#Image-__iter__">__iter__</a>() <==> iter(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Image-__le__"><strong>__le__</strong></a>(...)</dt><dd><tt>x.<a href="#Image-__le__">__le__</a>(y) <==> x<=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Image-__len__"><strong>__len__</strong></a>(...)</dt><dd><tt>x.<a href="#Image-__len__">__len__</a>() <==> len(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Image-__lt__"><strong>__lt__</strong></a>(...)</dt><dd><tt>x.<a href="#Image-__lt__">__lt__</a>(y) <==> x<y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Image-__mul__"><strong>__mul__</strong></a>(...)</dt><dd><tt>x.<a href="#Image-__mul__">__mul__</a>(n) <==> x*n</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Image-__ne__"><strong>__ne__</strong></a>(...)</dt><dd><tt>x.<a href="#Image-__ne__">__ne__</a>(y) <==> x!=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Image-__rmul__"><strong>__rmul__</strong></a>(...)</dt><dd><tt>x.<a href="#Image-__rmul__">__rmul__</a>(n) <==> n*x</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Image-__sizeof__"><strong>__sizeof__</strong></a>(...)</dt><dd><tt>T.<a href="#Image-__sizeof__">__sizeof__</a>() -- size of T in memory, in bytes</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Image-count"><strong>count</strong></a>(...)</dt><dd><tt>T.<a href="#Image-count">count</a>(value) -> integer -- return number of occurrences of value</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Image-index"><strong>index</strong></a>(...)</dt><dd><tt>T.<a href="#Image-index">index</a>(value, [start, [stop]]) -> integer -- return first index of value.<br>
|
|
Raises ValueError if the value is not present.</tt></dd></dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="ImageSizes">class <strong>ImageSizes</strong></a>(<a href="__builtin__.html#tuple">__builtin__.tuple</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt><a href="#ImageSizes">ImageSizes</a>(original, large, largesquare, medium, small, extralarge)<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#ImageSizes">ImageSizes</a></dd>
|
|
<dd><a href="__builtin__.html#tuple">__builtin__.tuple</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="ImageSizes-__getnewargs__"><strong>__getnewargs__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="ImageSizes-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Static methods defined here:<br>
|
|
<dl><dt><a name="ImageSizes-__new__"><strong>__new__</strong></a>(_cls, original, large, largesquare, medium, small, extralarge)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors defined here:<br>
|
|
<dl><dt><strong>extralarge</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>large</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>largesquare</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>medium</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>original</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>small</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods inherited from <a href="__builtin__.html#tuple">__builtin__.tuple</a>:<br>
|
|
<dl><dt><a name="ImageSizes-__add__"><strong>__add__</strong></a>(...)</dt><dd><tt>x.<a href="#ImageSizes-__add__">__add__</a>(y) <==> x+y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ImageSizes-__contains__"><strong>__contains__</strong></a>(...)</dt><dd><tt>x.<a href="#ImageSizes-__contains__">__contains__</a>(y) <==> y in x</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ImageSizes-__eq__"><strong>__eq__</strong></a>(...)</dt><dd><tt>x.<a href="#ImageSizes-__eq__">__eq__</a>(y) <==> x==y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ImageSizes-__ge__"><strong>__ge__</strong></a>(...)</dt><dd><tt>x.<a href="#ImageSizes-__ge__">__ge__</a>(y) <==> x>=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ImageSizes-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#ImageSizes-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ImageSizes-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#ImageSizes-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ImageSizes-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#ImageSizes-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br>
|
|
<br>
|
|
Use of negative indices is not supported.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ImageSizes-__gt__"><strong>__gt__</strong></a>(...)</dt><dd><tt>x.<a href="#ImageSizes-__gt__">__gt__</a>(y) <==> x>y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ImageSizes-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#ImageSizes-__hash__">__hash__</a>() <==> hash(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ImageSizes-__iter__"><strong>__iter__</strong></a>(...)</dt><dd><tt>x.<a href="#ImageSizes-__iter__">__iter__</a>() <==> iter(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ImageSizes-__le__"><strong>__le__</strong></a>(...)</dt><dd><tt>x.<a href="#ImageSizes-__le__">__le__</a>(y) <==> x<=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ImageSizes-__len__"><strong>__len__</strong></a>(...)</dt><dd><tt>x.<a href="#ImageSizes-__len__">__len__</a>() <==> len(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ImageSizes-__lt__"><strong>__lt__</strong></a>(...)</dt><dd><tt>x.<a href="#ImageSizes-__lt__">__lt__</a>(y) <==> x<y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ImageSizes-__mul__"><strong>__mul__</strong></a>(...)</dt><dd><tt>x.<a href="#ImageSizes-__mul__">__mul__</a>(n) <==> x*n</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ImageSizes-__ne__"><strong>__ne__</strong></a>(...)</dt><dd><tt>x.<a href="#ImageSizes-__ne__">__ne__</a>(y) <==> x!=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ImageSizes-__rmul__"><strong>__rmul__</strong></a>(...)</dt><dd><tt>x.<a href="#ImageSizes-__rmul__">__rmul__</a>(n) <==> n*x</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ImageSizes-__sizeof__"><strong>__sizeof__</strong></a>(...)</dt><dd><tt>T.<a href="#ImageSizes-__sizeof__">__sizeof__</a>() -- size of T in memory, in bytes</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ImageSizes-count"><strong>count</strong></a>(...)</dt><dd><tt>T.<a href="#ImageSizes-count">count</a>(value) -> integer -- return number of occurrences of value</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ImageSizes-index"><strong>index</strong></a>(...)</dt><dd><tt>T.<a href="#ImageSizes-index">index</a>(value, [start, [stop]]) -> integer -- return first index of value.<br>
|
|
Raises ValueError if the value is not present.</tt></dd></dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="LastFMNetwork">class <strong>LastFMNetwork</strong></a>(<a href="pylast.html#_Network">_Network</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>A Last.fm network <a href="__builtin__.html#object">object</a><br>
|
|
<br>
|
|
api_key: a provided API_KEY<br>
|
|
api_secret: a provided API_SECRET<br>
|
|
session_key: a generated session_key or None<br>
|
|
username: a username of a valid user<br>
|
|
password_hash: the output of pylast.<a href="#-md5">md5</a>(password) where password is the user's password<br>
|
|
<br>
|
|
if username and password_hash were provided and not session_key, session_key will be<br>
|
|
generated automatically when needed.<br>
|
|
<br>
|
|
Either a valid session_key or a combination of username and password_hash must be present for scrobbling.<br>
|
|
<br>
|
|
Most read-only webservices only require an api_key and an api_secret, see about obtaining them from:<br>
|
|
<a href="http://www.last.fm/api/account">http://www.last.fm/api/account</a><br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#LastFMNetwork">LastFMNetwork</a></dd>
|
|
<dd><a href="pylast.html#_Network">_Network</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="LastFMNetwork-__init__"><strong>__init__</strong></a>(self, api_key<font color="#909090">=''</font>, api_secret<font color="#909090">=''</font>, session_key<font color="#909090">=''</font>, username<font color="#909090">=''</font>, password_hash<font color="#909090">=''</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_Network">_Network</a>:<br>
|
|
<dl><dt><a name="LastFMNetwork-__str__"><strong>__str__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-create_new_playlist"><strong>create_new_playlist</strong></a>(self, title, description)</dt><dd><tt>Creates a playlist for the authenticated user and returns it<br>
|
|
title: The title of the new playlist.<br>
|
|
description: The description of the new playlist.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-disable_caching"><strong>disable_caching</strong></a>(self)</dt><dd><tt>Disables all caching features.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-disable_proxy"><strong>disable_proxy</strong></a>(self)</dt><dd><tt>Disable using the web proxy</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-enable_caching"><strong>enable_caching</strong></a>(self, file_path<font color="#909090">=None</font>)</dt><dd><tt>Enables caching request-wide for all cachable calls.<br>
|
|
In choosing the backend used for caching, it will try _SqliteCacheBackend first if<br>
|
|
the module sqlite3 is present. If not, it will fallback to _ShelfCacheBackend which uses shelve.Shelf objects.<br>
|
|
<br>
|
|
* file_path: A file path for the backend storage file. If <br>
|
|
None set, a temp file would probably be created, according the backend.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-enable_proxy"><strong>enable_proxy</strong></a>(self, host, port)</dt><dd><tt>Enable a default web proxy</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-get_album"><strong>get_album</strong></a>(self, artist, title)</dt><dd><tt>Return an <a href="#Album">Album</a> <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-get_album_by_mbid"><strong>get_album_by_mbid</strong></a>(self, mbid)</dt><dd><tt>Looks up an album by its MusicBrainz ID</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-get_artist"><strong>get_artist</strong></a>(self, artist_name)</dt><dd><tt>Return an <a href="#Artist">Artist</a> <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-get_artist_by_mbid"><strong>get_artist_by_mbid</strong></a>(self, mbid)</dt><dd><tt>Loooks up an artist by its MusicBrainz ID</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-get_authenticated_user"><strong>get_authenticated_user</strong></a>(self)</dt><dd><tt>Returns the authenticated user</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-get_country"><strong>get_country</strong></a>(self, country_name)</dt><dd><tt>Returns a country <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-get_group"><strong>get_group</strong></a>(self, name)</dt><dd><tt>Returns a <a href="#Group">Group</a> <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-get_scrobbler"><strong>get_scrobbler</strong></a>(self, client_id, client_version)</dt><dd><tt>Returns a <a href="#Scrobbler">Scrobbler</a> <a href="__builtin__.html#object">object</a> used for submitting tracks to the server<br>
|
|
<br>
|
|
Quote from <a href="http://www.last.fm/api/submissions">http://www.last.fm/api/submissions</a>:<br>
|
|
========<br>
|
|
Client identifiers are used to provide a centrally managed database of <br>
|
|
the client versions, allowing clients to be banned if they are found to <br>
|
|
be behaving undesirably. The client ID is associated with a version <br>
|
|
number on the server, however these are only incremented if a client is <br>
|
|
banned and do not have to reflect the version of the actual client application.<br>
|
|
<br>
|
|
During development, clients which have not been allocated an identifier should <br>
|
|
use the identifier tst, with a version number of 1.0. Do not distribute code or<br>
|
|
client implementations which use this test identifier. Do not use the identifiers<br>
|
|
used by other clients.<br>
|
|
=========<br>
|
|
<br>
|
|
To obtain a new client identifier please contact:<br>
|
|
* Last.fm: submissions@last.fm<br>
|
|
* # TODO: list others<br>
|
|
<br>
|
|
...and provide us with the name of your client and its homepage address.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-get_tag"><strong>get_tag</strong></a>(self, name)</dt><dd><tt>Returns a tag <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-get_top_tags"><strong>get_top_tags</strong></a>(self, limit<font color="#909090">=None</font>)</dt><dd><tt>Returns a sequence of the most used tags as a sequence of <a href="#TopItem">TopItem</a> objects.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-get_track"><strong>get_track</strong></a>(self, artist, title)</dt><dd><tt>Return a <a href="#Track">Track</a> <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-get_track_by_mbid"><strong>get_track_by_mbid</strong></a>(self, mbid)</dt><dd><tt>Looks up a track by its MusicBrainz ID</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-get_user"><strong>get_user</strong></a>(self, username)</dt><dd><tt>Returns a user <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-is_caching_enabled"><strong>is_caching_enabled</strong></a>(self)</dt><dd><tt>Returns True if caching is enabled.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-is_proxy_enabled"><strong>is_proxy_enabled</strong></a>(self)</dt><dd><tt>Returns True if a web proxy is enabled.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-scrobble"><strong>scrobble</strong></a>(self, artist, title, timestamp, album<font color="#909090">=None</font>, album_artist<font color="#909090">=None</font>, track_number<font color="#909090">=None</font>, duration<font color="#909090">=None</font>, stream_id<font color="#909090">=None</font>, context<font color="#909090">=None</font>, mbid<font color="#909090">=None</font>)</dt><dd><tt>Used to add a track-play to a user's profile.<br>
|
|
<br>
|
|
Parameters:<br>
|
|
artist (Required) : The artist name.<br>
|
|
title (Required) : The track name.<br>
|
|
timestamp (Required) : The time the track started playing, in UNIX timestamp format (integer number of seconds since 00:00:00, January 1st 1970 UTC). This must be in the UTC time zone.<br>
|
|
album (Optional) : The album name.<br>
|
|
album_artist (Optional) : The album artist - if this differs from the track artist.<br>
|
|
context (Optional) : Sub-client version (not public, only enabled for certain API keys)<br>
|
|
stream_id (Optional) : The stream id for this track received from the radio.getPlaylist service.<br>
|
|
track_number (Optional) : The track number of the track on the album.<br>
|
|
mbid (Optional) : The MusicBrainz <a href="#Track">Track</a> ID.<br>
|
|
duration (Optional) : The length of the track in seconds.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-scrobble_many"><strong>scrobble_many</strong></a>(self, tracks)</dt><dd><tt>Used to scrobble a batch of tracks at once. The parameter tracks is a sequence of dicts per<br>
|
|
track containing the keyword arguments as if passed to the <a href="#LastFMNetwork-scrobble">scrobble</a>() method.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-search_for_album"><strong>search_for_album</strong></a>(self, album_name)</dt><dd><tt>Searches for an album by its name. Returns a <a href="#AlbumSearch">AlbumSearch</a> <a href="__builtin__.html#object">object</a>.<br>
|
|
Use get_next_page() to retreive sequences of results.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-search_for_artist"><strong>search_for_artist</strong></a>(self, artist_name)</dt><dd><tt>Searches of an artist by its name. Returns a <a href="#ArtistSearch">ArtistSearch</a> <a href="__builtin__.html#object">object</a>.<br>
|
|
Use get_next_page() to retreive sequences of results.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-search_for_tag"><strong>search_for_tag</strong></a>(self, tag_name)</dt><dd><tt>Searches of a tag by its name. Returns a <a href="#TagSearch">TagSearch</a> <a href="__builtin__.html#object">object</a>.<br>
|
|
Use get_next_page() to retreive sequences of results.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-search_for_track"><strong>search_for_track</strong></a>(self, artist_name, track_name)</dt><dd><tt>Searches of a track by its name and its artist. Set artist to an empty string if not available.<br>
|
|
Returns a <a href="#TrackSearch">TrackSearch</a> <a href="__builtin__.html#object">object</a>.<br>
|
|
Use get_next_page() to retreive sequences of results.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-search_for_venue"><strong>search_for_venue</strong></a>(self, venue_name, country_name)</dt><dd><tt>Searches of a venue by its name and its country. Set country_name to an empty string if not available.<br>
|
|
Returns a <a href="#VenueSearch">VenueSearch</a> <a href="__builtin__.html#object">object</a>.<br>
|
|
Use get_next_page() to retreive sequences of results.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LastFMNetwork-update_now_playing"><strong>update_now_playing</strong></a>(self, artist, title, album<font color="#909090">=None</font>, album_artist<font color="#909090">=None</font>, duration<font color="#909090">=None</font>, track_number<font color="#909090">=None</font>, mbid<font color="#909090">=None</font>, context<font color="#909090">=None</font>)</dt><dd><tt>Used to notify Last.fm that a user has started listening to a track. <br>
|
|
<br>
|
|
Parameters:<br>
|
|
artist (Required) : The artist name<br>
|
|
title (Required) : The track title<br>
|
|
album (Optional) : The album name.<br>
|
|
album_artist (Optional) : The album artist - if this differs from the track artist.<br>
|
|
duration (Optional) : The length of the track in seconds.<br>
|
|
track_number (Optional) : The track number of the track on the album.<br>
|
|
mbid (Optional) : The MusicBrainz <a href="#Track">Track</a> ID.<br>
|
|
context (Optional) : Sub-client version (not public, only enabled for certain API keys)</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#_Network">_Network</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="Library">class <strong>Library</strong></a>(<a href="pylast.html#_BaseObject">_BaseObject</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>A user's Last.fm library.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#Library">Library</a></dd>
|
|
<dd><a href="pylast.html#_BaseObject">_BaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="Library-__init__"><strong>__init__</strong></a>(self, user, network)</dt></dl>
|
|
|
|
<dl><dt><a name="Library-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="Library-__str__"><strong>__str__</strong></a> = r(*args)</dt></dl>
|
|
|
|
<dl><dt><a name="Library-add_album"><strong>add_album</strong></a>(self, album)</dt><dd><tt>Add an album to this library.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Library-add_artist"><strong>add_artist</strong></a>(self, artist)</dt><dd><tt>Add an artist to this library.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Library-add_track"><strong>add_track</strong></a>(self, track)</dt><dd><tt>Add a track to this library.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Library-get_albums"><strong>get_albums</strong></a>(self, limit<font color="#909090">=50</font>)</dt><dd><tt>Returns a sequence of <a href="#Album">Album</a> objects<br>
|
|
if limit==None it will return all (may take a while)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Library-get_artists"><strong>get_artists</strong></a>(self, limit<font color="#909090">=50</font>)</dt><dd><tt>Returns a sequence of <a href="#Album">Album</a> objects<br>
|
|
if limit==None it will return all (may take a while)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Library-get_tracks"><strong>get_tracks</strong></a>(self, limit<font color="#909090">=50</font>)</dt><dd><tt>Returns a sequence of <a href="#Album">Album</a> objects<br>
|
|
if limit==None it will return all (may take a while)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Library-get_user"><strong>get_user</strong></a>(self)</dt><dd><tt>Returns the user who owns this library.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data and other attributes defined here:<br>
|
|
<dl><dt><strong>user</strong> = None</dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><a name="Library-__hash__"><strong>__hash__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>network</strong> = None</dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="LibraryItem">class <strong>LibraryItem</strong></a>(<a href="__builtin__.html#tuple">__builtin__.tuple</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt><a href="#LibraryItem">LibraryItem</a>(item, playcount, tagcount)<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#LibraryItem">LibraryItem</a></dd>
|
|
<dd><a href="__builtin__.html#tuple">__builtin__.tuple</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="LibraryItem-__getnewargs__"><strong>__getnewargs__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="LibraryItem-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Static methods defined here:<br>
|
|
<dl><dt><a name="LibraryItem-__new__"><strong>__new__</strong></a>(_cls, item, playcount, tagcount)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors defined here:<br>
|
|
<dl><dt><strong>item</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>playcount</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>tagcount</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods inherited from <a href="__builtin__.html#tuple">__builtin__.tuple</a>:<br>
|
|
<dl><dt><a name="LibraryItem-__add__"><strong>__add__</strong></a>(...)</dt><dd><tt>x.<a href="#LibraryItem-__add__">__add__</a>(y) <==> x+y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibraryItem-__contains__"><strong>__contains__</strong></a>(...)</dt><dd><tt>x.<a href="#LibraryItem-__contains__">__contains__</a>(y) <==> y in x</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibraryItem-__eq__"><strong>__eq__</strong></a>(...)</dt><dd><tt>x.<a href="#LibraryItem-__eq__">__eq__</a>(y) <==> x==y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibraryItem-__ge__"><strong>__ge__</strong></a>(...)</dt><dd><tt>x.<a href="#LibraryItem-__ge__">__ge__</a>(y) <==> x>=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibraryItem-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#LibraryItem-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibraryItem-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#LibraryItem-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibraryItem-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#LibraryItem-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br>
|
|
<br>
|
|
Use of negative indices is not supported.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibraryItem-__gt__"><strong>__gt__</strong></a>(...)</dt><dd><tt>x.<a href="#LibraryItem-__gt__">__gt__</a>(y) <==> x>y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibraryItem-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#LibraryItem-__hash__">__hash__</a>() <==> hash(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibraryItem-__iter__"><strong>__iter__</strong></a>(...)</dt><dd><tt>x.<a href="#LibraryItem-__iter__">__iter__</a>() <==> iter(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibraryItem-__le__"><strong>__le__</strong></a>(...)</dt><dd><tt>x.<a href="#LibraryItem-__le__">__le__</a>(y) <==> x<=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibraryItem-__len__"><strong>__len__</strong></a>(...)</dt><dd><tt>x.<a href="#LibraryItem-__len__">__len__</a>() <==> len(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibraryItem-__lt__"><strong>__lt__</strong></a>(...)</dt><dd><tt>x.<a href="#LibraryItem-__lt__">__lt__</a>(y) <==> x<y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibraryItem-__mul__"><strong>__mul__</strong></a>(...)</dt><dd><tt>x.<a href="#LibraryItem-__mul__">__mul__</a>(n) <==> x*n</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibraryItem-__ne__"><strong>__ne__</strong></a>(...)</dt><dd><tt>x.<a href="#LibraryItem-__ne__">__ne__</a>(y) <==> x!=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibraryItem-__rmul__"><strong>__rmul__</strong></a>(...)</dt><dd><tt>x.<a href="#LibraryItem-__rmul__">__rmul__</a>(n) <==> n*x</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibraryItem-__sizeof__"><strong>__sizeof__</strong></a>(...)</dt><dd><tt>T.<a href="#LibraryItem-__sizeof__">__sizeof__</a>() -- size of T in memory, in bytes</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibraryItem-count"><strong>count</strong></a>(...)</dt><dd><tt>T.<a href="#LibraryItem-count">count</a>(value) -> integer -- return number of occurrences of value</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibraryItem-index"><strong>index</strong></a>(...)</dt><dd><tt>T.<a href="#LibraryItem-index">index</a>(value, [start, [stop]]) -> integer -- return first index of value.<br>
|
|
Raises ValueError if the value is not present.</tt></dd></dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="LibreFMNetwork">class <strong>LibreFMNetwork</strong></a>(<a href="pylast.html#_Network">_Network</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>A preconfigured _Network <a href="__builtin__.html#object">object</a> for Libre.fm<br>
|
|
<br>
|
|
api_key: a provided API_KEY<br>
|
|
api_secret: a provided API_SECRET<br>
|
|
session_key: a generated session_key or None<br>
|
|
username: a username of a valid user<br>
|
|
password_hash: the output of pylast.<a href="#-md5">md5</a>(password) where password is the user's password<br>
|
|
<br>
|
|
if username and password_hash were provided and not session_key, session_key will be<br>
|
|
generated automatically when needed.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#LibreFMNetwork">LibreFMNetwork</a></dd>
|
|
<dd><a href="pylast.html#_Network">_Network</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="LibreFMNetwork-__init__"><strong>__init__</strong></a>(self, api_key<font color="#909090">=''</font>, api_secret<font color="#909090">=''</font>, session_key<font color="#909090">=''</font>, username<font color="#909090">=''</font>, password_hash<font color="#909090">=''</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_Network">_Network</a>:<br>
|
|
<dl><dt><a name="LibreFMNetwork-__str__"><strong>__str__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-create_new_playlist"><strong>create_new_playlist</strong></a>(self, title, description)</dt><dd><tt>Creates a playlist for the authenticated user and returns it<br>
|
|
title: The title of the new playlist.<br>
|
|
description: The description of the new playlist.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-disable_caching"><strong>disable_caching</strong></a>(self)</dt><dd><tt>Disables all caching features.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-disable_proxy"><strong>disable_proxy</strong></a>(self)</dt><dd><tt>Disable using the web proxy</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-enable_caching"><strong>enable_caching</strong></a>(self, file_path<font color="#909090">=None</font>)</dt><dd><tt>Enables caching request-wide for all cachable calls.<br>
|
|
In choosing the backend used for caching, it will try _SqliteCacheBackend first if<br>
|
|
the module sqlite3 is present. If not, it will fallback to _ShelfCacheBackend which uses shelve.Shelf objects.<br>
|
|
<br>
|
|
* file_path: A file path for the backend storage file. If <br>
|
|
None set, a temp file would probably be created, according the backend.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-enable_proxy"><strong>enable_proxy</strong></a>(self, host, port)</dt><dd><tt>Enable a default web proxy</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-get_album"><strong>get_album</strong></a>(self, artist, title)</dt><dd><tt>Return an <a href="#Album">Album</a> <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-get_album_by_mbid"><strong>get_album_by_mbid</strong></a>(self, mbid)</dt><dd><tt>Looks up an album by its MusicBrainz ID</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-get_artist"><strong>get_artist</strong></a>(self, artist_name)</dt><dd><tt>Return an <a href="#Artist">Artist</a> <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-get_artist_by_mbid"><strong>get_artist_by_mbid</strong></a>(self, mbid)</dt><dd><tt>Loooks up an artist by its MusicBrainz ID</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-get_authenticated_user"><strong>get_authenticated_user</strong></a>(self)</dt><dd><tt>Returns the authenticated user</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-get_country"><strong>get_country</strong></a>(self, country_name)</dt><dd><tt>Returns a country <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-get_group"><strong>get_group</strong></a>(self, name)</dt><dd><tt>Returns a <a href="#Group">Group</a> <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-get_scrobbler"><strong>get_scrobbler</strong></a>(self, client_id, client_version)</dt><dd><tt>Returns a <a href="#Scrobbler">Scrobbler</a> <a href="__builtin__.html#object">object</a> used for submitting tracks to the server<br>
|
|
<br>
|
|
Quote from <a href="http://www.last.fm/api/submissions">http://www.last.fm/api/submissions</a>:<br>
|
|
========<br>
|
|
Client identifiers are used to provide a centrally managed database of <br>
|
|
the client versions, allowing clients to be banned if they are found to <br>
|
|
be behaving undesirably. The client ID is associated with a version <br>
|
|
number on the server, however these are only incremented if a client is <br>
|
|
banned and do not have to reflect the version of the actual client application.<br>
|
|
<br>
|
|
During development, clients which have not been allocated an identifier should <br>
|
|
use the identifier tst, with a version number of 1.0. Do not distribute code or<br>
|
|
client implementations which use this test identifier. Do not use the identifiers<br>
|
|
used by other clients.<br>
|
|
=========<br>
|
|
<br>
|
|
To obtain a new client identifier please contact:<br>
|
|
* Last.fm: submissions@last.fm<br>
|
|
* # TODO: list others<br>
|
|
<br>
|
|
...and provide us with the name of your client and its homepage address.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-get_tag"><strong>get_tag</strong></a>(self, name)</dt><dd><tt>Returns a tag <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-get_top_tags"><strong>get_top_tags</strong></a>(self, limit<font color="#909090">=None</font>)</dt><dd><tt>Returns a sequence of the most used tags as a sequence of <a href="#TopItem">TopItem</a> objects.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-get_track"><strong>get_track</strong></a>(self, artist, title)</dt><dd><tt>Return a <a href="#Track">Track</a> <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-get_track_by_mbid"><strong>get_track_by_mbid</strong></a>(self, mbid)</dt><dd><tt>Looks up a track by its MusicBrainz ID</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-get_user"><strong>get_user</strong></a>(self, username)</dt><dd><tt>Returns a user <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-is_caching_enabled"><strong>is_caching_enabled</strong></a>(self)</dt><dd><tt>Returns True if caching is enabled.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-is_proxy_enabled"><strong>is_proxy_enabled</strong></a>(self)</dt><dd><tt>Returns True if a web proxy is enabled.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-scrobble"><strong>scrobble</strong></a>(self, artist, title, timestamp, album<font color="#909090">=None</font>, album_artist<font color="#909090">=None</font>, track_number<font color="#909090">=None</font>, duration<font color="#909090">=None</font>, stream_id<font color="#909090">=None</font>, context<font color="#909090">=None</font>, mbid<font color="#909090">=None</font>)</dt><dd><tt>Used to add a track-play to a user's profile.<br>
|
|
<br>
|
|
Parameters:<br>
|
|
artist (Required) : The artist name.<br>
|
|
title (Required) : The track name.<br>
|
|
timestamp (Required) : The time the track started playing, in UNIX timestamp format (integer number of seconds since 00:00:00, January 1st 1970 UTC). This must be in the UTC time zone.<br>
|
|
album (Optional) : The album name.<br>
|
|
album_artist (Optional) : The album artist - if this differs from the track artist.<br>
|
|
context (Optional) : Sub-client version (not public, only enabled for certain API keys)<br>
|
|
stream_id (Optional) : The stream id for this track received from the radio.getPlaylist service.<br>
|
|
track_number (Optional) : The track number of the track on the album.<br>
|
|
mbid (Optional) : The MusicBrainz <a href="#Track">Track</a> ID.<br>
|
|
duration (Optional) : The length of the track in seconds.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-scrobble_many"><strong>scrobble_many</strong></a>(self, tracks)</dt><dd><tt>Used to scrobble a batch of tracks at once. The parameter tracks is a sequence of dicts per<br>
|
|
track containing the keyword arguments as if passed to the <a href="#LibreFMNetwork-scrobble">scrobble</a>() method.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-search_for_album"><strong>search_for_album</strong></a>(self, album_name)</dt><dd><tt>Searches for an album by its name. Returns a <a href="#AlbumSearch">AlbumSearch</a> <a href="__builtin__.html#object">object</a>.<br>
|
|
Use get_next_page() to retreive sequences of results.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-search_for_artist"><strong>search_for_artist</strong></a>(self, artist_name)</dt><dd><tt>Searches of an artist by its name. Returns a <a href="#ArtistSearch">ArtistSearch</a> <a href="__builtin__.html#object">object</a>.<br>
|
|
Use get_next_page() to retreive sequences of results.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-search_for_tag"><strong>search_for_tag</strong></a>(self, tag_name)</dt><dd><tt>Searches of a tag by its name. Returns a <a href="#TagSearch">TagSearch</a> <a href="__builtin__.html#object">object</a>.<br>
|
|
Use get_next_page() to retreive sequences of results.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-search_for_track"><strong>search_for_track</strong></a>(self, artist_name, track_name)</dt><dd><tt>Searches of a track by its name and its artist. Set artist to an empty string if not available.<br>
|
|
Returns a <a href="#TrackSearch">TrackSearch</a> <a href="__builtin__.html#object">object</a>.<br>
|
|
Use get_next_page() to retreive sequences of results.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-search_for_venue"><strong>search_for_venue</strong></a>(self, venue_name, country_name)</dt><dd><tt>Searches of a venue by its name and its country. Set country_name to an empty string if not available.<br>
|
|
Returns a <a href="#VenueSearch">VenueSearch</a> <a href="__builtin__.html#object">object</a>.<br>
|
|
Use get_next_page() to retreive sequences of results.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LibreFMNetwork-update_now_playing"><strong>update_now_playing</strong></a>(self, artist, title, album<font color="#909090">=None</font>, album_artist<font color="#909090">=None</font>, duration<font color="#909090">=None</font>, track_number<font color="#909090">=None</font>, mbid<font color="#909090">=None</font>, context<font color="#909090">=None</font>)</dt><dd><tt>Used to notify Last.fm that a user has started listening to a track. <br>
|
|
<br>
|
|
Parameters:<br>
|
|
artist (Required) : The artist name<br>
|
|
title (Required) : The track title<br>
|
|
album (Optional) : The album name.<br>
|
|
album_artist (Optional) : The album artist - if this differs from the track artist.<br>
|
|
duration (Optional) : The length of the track in seconds.<br>
|
|
track_number (Optional) : The track number of the track on the album.<br>
|
|
mbid (Optional) : The MusicBrainz <a href="#Track">Track</a> ID.<br>
|
|
context (Optional) : Sub-client version (not public, only enabled for certain API keys)</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#_Network">_Network</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="LovedTrack">class <strong>LovedTrack</strong></a>(<a href="__builtin__.html#tuple">__builtin__.tuple</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt><a href="#LovedTrack">LovedTrack</a>(track, date, timestamp)<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#LovedTrack">LovedTrack</a></dd>
|
|
<dd><a href="__builtin__.html#tuple">__builtin__.tuple</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="LovedTrack-__getnewargs__"><strong>__getnewargs__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="LovedTrack-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Static methods defined here:<br>
|
|
<dl><dt><a name="LovedTrack-__new__"><strong>__new__</strong></a>(_cls, track, date, timestamp)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors defined here:<br>
|
|
<dl><dt><strong>date</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>timestamp</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>track</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods inherited from <a href="__builtin__.html#tuple">__builtin__.tuple</a>:<br>
|
|
<dl><dt><a name="LovedTrack-__add__"><strong>__add__</strong></a>(...)</dt><dd><tt>x.<a href="#LovedTrack-__add__">__add__</a>(y) <==> x+y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LovedTrack-__contains__"><strong>__contains__</strong></a>(...)</dt><dd><tt>x.<a href="#LovedTrack-__contains__">__contains__</a>(y) <==> y in x</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LovedTrack-__eq__"><strong>__eq__</strong></a>(...)</dt><dd><tt>x.<a href="#LovedTrack-__eq__">__eq__</a>(y) <==> x==y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LovedTrack-__ge__"><strong>__ge__</strong></a>(...)</dt><dd><tt>x.<a href="#LovedTrack-__ge__">__ge__</a>(y) <==> x>=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LovedTrack-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#LovedTrack-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LovedTrack-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#LovedTrack-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LovedTrack-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#LovedTrack-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br>
|
|
<br>
|
|
Use of negative indices is not supported.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LovedTrack-__gt__"><strong>__gt__</strong></a>(...)</dt><dd><tt>x.<a href="#LovedTrack-__gt__">__gt__</a>(y) <==> x>y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LovedTrack-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#LovedTrack-__hash__">__hash__</a>() <==> hash(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LovedTrack-__iter__"><strong>__iter__</strong></a>(...)</dt><dd><tt>x.<a href="#LovedTrack-__iter__">__iter__</a>() <==> iter(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LovedTrack-__le__"><strong>__le__</strong></a>(...)</dt><dd><tt>x.<a href="#LovedTrack-__le__">__le__</a>(y) <==> x<=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LovedTrack-__len__"><strong>__len__</strong></a>(...)</dt><dd><tt>x.<a href="#LovedTrack-__len__">__len__</a>() <==> len(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LovedTrack-__lt__"><strong>__lt__</strong></a>(...)</dt><dd><tt>x.<a href="#LovedTrack-__lt__">__lt__</a>(y) <==> x<y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LovedTrack-__mul__"><strong>__mul__</strong></a>(...)</dt><dd><tt>x.<a href="#LovedTrack-__mul__">__mul__</a>(n) <==> x*n</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LovedTrack-__ne__"><strong>__ne__</strong></a>(...)</dt><dd><tt>x.<a href="#LovedTrack-__ne__">__ne__</a>(y) <==> x!=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LovedTrack-__rmul__"><strong>__rmul__</strong></a>(...)</dt><dd><tt>x.<a href="#LovedTrack-__rmul__">__rmul__</a>(n) <==> n*x</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LovedTrack-__sizeof__"><strong>__sizeof__</strong></a>(...)</dt><dd><tt>T.<a href="#LovedTrack-__sizeof__">__sizeof__</a>() -- size of T in memory, in bytes</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LovedTrack-count"><strong>count</strong></a>(...)</dt><dd><tt>T.<a href="#LovedTrack-count">count</a>(value) -> integer -- return number of occurrences of value</tt></dd></dl>
|
|
|
|
<dl><dt><a name="LovedTrack-index"><strong>index</strong></a>(...)</dt><dd><tt>T.<a href="#LovedTrack-index">index</a>(value, [start, [stop]]) -> integer -- return first index of value.<br>
|
|
Raises ValueError if the value is not present.</tt></dd></dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="MalformedResponseError">class <strong>MalformedResponseError</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt><a href="exceptions.html#Exception">Exception</a> conveying a malformed response from Last.fm.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#MalformedResponseError">MalformedResponseError</a></dd>
|
|
<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
|
|
<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="MalformedResponseError-__init__"><strong>__init__</strong></a>(self, network, underlying_error)</dt></dl>
|
|
|
|
<dl><dt><a name="MalformedResponseError-__str__"><strong>__str__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors defined here:<br>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
|
|
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#MalformedResponseError-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
|
|
<dl><dt><a name="MalformedResponseError-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#MalformedResponseError-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="MalformedResponseError-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#MalformedResponseError-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="MalformedResponseError-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#MalformedResponseError-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="MalformedResponseError-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#MalformedResponseError-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br>
|
|
<br>
|
|
Use of negative indices is not supported.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="MalformedResponseError-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
|
|
|
|
<dl><dt><a name="MalformedResponseError-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#MalformedResponseError-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="MalformedResponseError-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#MalformedResponseError-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl>
|
|
|
|
<dl><dt><a name="MalformedResponseError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
|
|
|
|
<dl><dt><a name="MalformedResponseError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
</dl>
|
|
<dl><dt><strong>args</strong></dt>
|
|
</dl>
|
|
<dl><dt><strong>message</strong></dt>
|
|
</dl>
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="NetworkError">class <strong>NetworkError</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt><a href="exceptions.html#Exception">Exception</a> conveying a problem in sending a request to Last.fm<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#NetworkError">NetworkError</a></dd>
|
|
<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
|
|
<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="NetworkError-__init__"><strong>__init__</strong></a>(self, network, underlying_error)</dt></dl>
|
|
|
|
<dl><dt><a name="NetworkError-__str__"><strong>__str__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors defined here:<br>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
|
|
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#NetworkError-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
|
|
<dl><dt><a name="NetworkError-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#NetworkError-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="NetworkError-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#NetworkError-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="NetworkError-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#NetworkError-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="NetworkError-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#NetworkError-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br>
|
|
<br>
|
|
Use of negative indices is not supported.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="NetworkError-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
|
|
|
|
<dl><dt><a name="NetworkError-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#NetworkError-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="NetworkError-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#NetworkError-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl>
|
|
|
|
<dl><dt><a name="NetworkError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
|
|
|
|
<dl><dt><a name="NetworkError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
</dl>
|
|
<dl><dt><strong>args</strong></dt>
|
|
</dl>
|
|
<dl><dt><strong>message</strong></dt>
|
|
</dl>
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="PlayedTrack">class <strong>PlayedTrack</strong></a>(<a href="__builtin__.html#tuple">__builtin__.tuple</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt><a href="#PlayedTrack">PlayedTrack</a>(track, playback_date, timestamp)<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#PlayedTrack">PlayedTrack</a></dd>
|
|
<dd><a href="__builtin__.html#tuple">__builtin__.tuple</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="PlayedTrack-__getnewargs__"><strong>__getnewargs__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="PlayedTrack-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Static methods defined here:<br>
|
|
<dl><dt><a name="PlayedTrack-__new__"><strong>__new__</strong></a>(_cls, track, playback_date, timestamp)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors defined here:<br>
|
|
<dl><dt><strong>playback_date</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>timestamp</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>track</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods inherited from <a href="__builtin__.html#tuple">__builtin__.tuple</a>:<br>
|
|
<dl><dt><a name="PlayedTrack-__add__"><strong>__add__</strong></a>(...)</dt><dd><tt>x.<a href="#PlayedTrack-__add__">__add__</a>(y) <==> x+y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="PlayedTrack-__contains__"><strong>__contains__</strong></a>(...)</dt><dd><tt>x.<a href="#PlayedTrack-__contains__">__contains__</a>(y) <==> y in x</tt></dd></dl>
|
|
|
|
<dl><dt><a name="PlayedTrack-__eq__"><strong>__eq__</strong></a>(...)</dt><dd><tt>x.<a href="#PlayedTrack-__eq__">__eq__</a>(y) <==> x==y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="PlayedTrack-__ge__"><strong>__ge__</strong></a>(...)</dt><dd><tt>x.<a href="#PlayedTrack-__ge__">__ge__</a>(y) <==> x>=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="PlayedTrack-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#PlayedTrack-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="PlayedTrack-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#PlayedTrack-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="PlayedTrack-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#PlayedTrack-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br>
|
|
<br>
|
|
Use of negative indices is not supported.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="PlayedTrack-__gt__"><strong>__gt__</strong></a>(...)</dt><dd><tt>x.<a href="#PlayedTrack-__gt__">__gt__</a>(y) <==> x>y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="PlayedTrack-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#PlayedTrack-__hash__">__hash__</a>() <==> hash(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="PlayedTrack-__iter__"><strong>__iter__</strong></a>(...)</dt><dd><tt>x.<a href="#PlayedTrack-__iter__">__iter__</a>() <==> iter(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="PlayedTrack-__le__"><strong>__le__</strong></a>(...)</dt><dd><tt>x.<a href="#PlayedTrack-__le__">__le__</a>(y) <==> x<=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="PlayedTrack-__len__"><strong>__len__</strong></a>(...)</dt><dd><tt>x.<a href="#PlayedTrack-__len__">__len__</a>() <==> len(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="PlayedTrack-__lt__"><strong>__lt__</strong></a>(...)</dt><dd><tt>x.<a href="#PlayedTrack-__lt__">__lt__</a>(y) <==> x<y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="PlayedTrack-__mul__"><strong>__mul__</strong></a>(...)</dt><dd><tt>x.<a href="#PlayedTrack-__mul__">__mul__</a>(n) <==> x*n</tt></dd></dl>
|
|
|
|
<dl><dt><a name="PlayedTrack-__ne__"><strong>__ne__</strong></a>(...)</dt><dd><tt>x.<a href="#PlayedTrack-__ne__">__ne__</a>(y) <==> x!=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="PlayedTrack-__rmul__"><strong>__rmul__</strong></a>(...)</dt><dd><tt>x.<a href="#PlayedTrack-__rmul__">__rmul__</a>(n) <==> n*x</tt></dd></dl>
|
|
|
|
<dl><dt><a name="PlayedTrack-__sizeof__"><strong>__sizeof__</strong></a>(...)</dt><dd><tt>T.<a href="#PlayedTrack-__sizeof__">__sizeof__</a>() -- size of T in memory, in bytes</tt></dd></dl>
|
|
|
|
<dl><dt><a name="PlayedTrack-count"><strong>count</strong></a>(...)</dt><dd><tt>T.<a href="#PlayedTrack-count">count</a>(value) -> integer -- return number of occurrences of value</tt></dd></dl>
|
|
|
|
<dl><dt><a name="PlayedTrack-index"><strong>index</strong></a>(...)</dt><dd><tt>T.<a href="#PlayedTrack-index">index</a>(value, [start, [stop]]) -> integer -- return first index of value.<br>
|
|
Raises ValueError if the value is not present.</tt></dd></dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="Playlist">class <strong>Playlist</strong></a>(<a href="pylast.html#_BaseObject">_BaseObject</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>A Last.fm user playlist.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#Playlist">Playlist</a></dd>
|
|
<dd><a href="pylast.html#_BaseObject">_BaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="Playlist-__init__"><strong>__init__</strong></a>(self, user, id, network)</dt></dl>
|
|
|
|
<dl><dt><a name="Playlist-__str__"><strong>__str__</strong></a> = r(*args)</dt></dl>
|
|
|
|
<dl><dt><a name="Playlist-add_track"><strong>add_track</strong></a>(self, track)</dt><dd><tt>Adds a <a href="#Track">Track</a> to this <a href="#Playlist">Playlist</a>.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Playlist-get_cover_image"><strong>get_cover_image</strong></a>(self, size<font color="#909090">=3</font>)</dt><dd><tt>Returns a uri to the cover image<br>
|
|
size can be one of:<br>
|
|
COVER_MEGA<br>
|
|
COVER_EXTRA_LARGE<br>
|
|
COVER_LARGE<br>
|
|
COVER_MEDIUM<br>
|
|
COVER_SMALL</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Playlist-get_creation_date"><strong>get_creation_date</strong></a>(self)</dt><dd><tt>Returns the creation date of this playlist.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Playlist-get_description"><strong>get_description</strong></a>(self)</dt><dd><tt>Returns the description of this playlist.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Playlist-get_duration"><strong>get_duration</strong></a>(self)</dt><dd><tt>Returns the duration of this playlist in milliseconds.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Playlist-get_id"><strong>get_id</strong></a>(self)</dt><dd><tt>Returns the playlist id.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Playlist-get_size"><strong>get_size</strong></a>(self)</dt><dd><tt>Returns the number of tracks in this playlist.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Playlist-get_title"><strong>get_title</strong></a>(self)</dt><dd><tt>Returns the title of this playlist.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Playlist-get_tracks"><strong>get_tracks</strong></a>(self)</dt><dd><tt>Returns a list of the tracks on this user playlist.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Playlist-get_url"><strong>get_url</strong></a>(self, domain_name<font color="#909090">=0</font>)</dt><dd><tt>Returns the url of the playlist on the network. <br>
|
|
* domain_name: The network's language domain. Possible values:<br>
|
|
o DOMAIN_ENGLISH<br>
|
|
o DOMAIN_GERMAN<br>
|
|
o DOMAIN_SPANISH<br>
|
|
o DOMAIN_FRENCH<br>
|
|
o DOMAIN_ITALIAN<br>
|
|
o DOMAIN_POLISH<br>
|
|
o DOMAIN_PORTUGUESE<br>
|
|
o DOMAIN_SWEDISH<br>
|
|
o DOMAIN_TURKISH<br>
|
|
o DOMAIN_RUSSIAN<br>
|
|
o DOMAIN_JAPANESE<br>
|
|
o DOMAIN_CHINESE</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Playlist-get_user"><strong>get_user</strong></a>(self)</dt><dd><tt>Returns the owner user of this playlist.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Playlist-has_track"><strong>has_track</strong></a>(self, track)</dt><dd><tt>Checks to see if track is already in the playlist.<br>
|
|
* track: Any <a href="#Track">Track</a> <a href="__builtin__.html#object">object</a>.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Playlist-is_streamable"><strong>is_streamable</strong></a>(self)</dt><dd><tt>Returns True if the playlist is streamable.<br>
|
|
For a playlist to be streamable, it needs at least 45 tracks by 15 different artists.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data and other attributes defined here:<br>
|
|
<dl><dt><strong>id</strong> = None</dl>
|
|
|
|
<dl><dt><strong>user</strong> = None</dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><a name="Playlist-__hash__"><strong>__hash__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>network</strong> = None</dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="Scrobbler">class <strong>Scrobbler</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>A class for scrobbling tracks to Last.fm<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%">Methods defined here:<br>
|
|
<dl><dt><a name="Scrobbler-__init__"><strong>__init__</strong></a>(self, network, client_id, client_version)</dt></dl>
|
|
|
|
<dl><dt><a name="Scrobbler-report_now_playing"><strong>report_now_playing</strong></a>(self, artist, title, album<font color="#909090">=''</font>, duration<font color="#909090">=''</font>, track_number<font color="#909090">=''</font>, mbid<font color="#909090">=''</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="Scrobbler-scrobble"><strong>scrobble</strong></a>(self, artist, title, time_started, source, mode, duration, album<font color="#909090">=''</font>, track_number<font color="#909090">=''</font>, mbid<font color="#909090">=''</font>)</dt><dd><tt>Scrobble a track. parameters:<br>
|
|
artist: <a href="#Artist">Artist</a> name.<br>
|
|
title: <a href="#Track">Track</a> title.<br>
|
|
time_started: UTC timestamp of when the track started playing.<br>
|
|
source: The source of the track<br>
|
|
SCROBBLE_SOURCE_USER: Chosen by the user (the most common value, unless you have a reason for choosing otherwise, use this).<br>
|
|
SCROBBLE_SOURCE_NON_PERSONALIZED_BROADCAST: Non-personalised broadcast (e.g. Shoutcast, BBC Radio 1).<br>
|
|
SCROBBLE_SOURCE_PERSONALIZED_BROADCAST: Personalised recommendation except Last.fm (e.g. Pandora, Launchcast).<br>
|
|
SCROBBLE_SOURCE_LASTFM: ast.fm (any mode). In this case, the 5-digit recommendation_key value must be set.<br>
|
|
SCROBBLE_SOURCE_UNKNOWN: Source unknown.<br>
|
|
mode: The submission mode<br>
|
|
SCROBBLE_MODE_PLAYED: The track was played.<br>
|
|
SCROBBLE_MODE_LOVED: The user manually loved the track (implies a listen)<br>
|
|
SCROBBLE_MODE_SKIPPED: The track was skipped (Only if source was Last.fm)<br>
|
|
SCROBBLE_MODE_BANNED: The track was banned (Only if source was Last.fm)<br>
|
|
duration: <a href="#Track">Track</a> duration in seconds.<br>
|
|
album: The album name.<br>
|
|
track_number: The track number on the album.<br>
|
|
mbid: MusicBrainz ID.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Scrobbler-scrobble_many"><strong>scrobble_many</strong></a>(self, tracks)</dt><dd><tt>Scrobble several tracks at once.<br>
|
|
<br>
|
|
tracks: A sequence of a sequence of parameters for each trach. The order of parameters<br>
|
|
is the same as if passed to the <a href="#Scrobbler-scrobble">scrobble</a>() method.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data descriptors defined here:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes defined here:<br>
|
|
<dl><dt><strong>nowplaying_url</strong> = None</dl>
|
|
|
|
<dl><dt><strong>session_id</strong> = None</dl>
|
|
|
|
<dl><dt><strong>submissions_url</strong> = None</dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="ScrobblingError">class <strong>ScrobblingError</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr>
|
|
|
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#ScrobblingError">ScrobblingError</a></dd>
|
|
<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
|
|
<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="ScrobblingError-__init__"><strong>__init__</strong></a>(self, message)</dt></dl>
|
|
|
|
<dl><dt><a name="ScrobblingError-__str__"><strong>__str__</strong></a> = r(*args)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors defined here:<br>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
|
|
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#ScrobblingError-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
|
|
<dl><dt><a name="ScrobblingError-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#ScrobblingError-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ScrobblingError-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#ScrobblingError-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ScrobblingError-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#ScrobblingError-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ScrobblingError-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#ScrobblingError-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br>
|
|
<br>
|
|
Use of negative indices is not supported.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ScrobblingError-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
|
|
|
|
<dl><dt><a name="ScrobblingError-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#ScrobblingError-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ScrobblingError-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#ScrobblingError-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ScrobblingError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
|
|
|
|
<dl><dt><a name="ScrobblingError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
</dl>
|
|
<dl><dt><strong>args</strong></dt>
|
|
</dl>
|
|
<dl><dt><strong>message</strong></dt>
|
|
</dl>
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="SessionKeyGenerator">class <strong>SessionKeyGenerator</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>Methods of generating a session key:<br>
|
|
1) Web Authentication:<br>
|
|
a. network = get_*_network(API_KEY, API_SECRET)<br>
|
|
b. sg = <a href="#SessionKeyGenerator">SessionKeyGenerator</a>(network)<br>
|
|
c. url = sg.<a href="#SessionKeyGenerator-get_web_auth_url">get_web_auth_url</a>()<br>
|
|
d. Ask the user to open the url and authorize you, and wait for it.<br>
|
|
e. session_key = sg.<a href="#SessionKeyGenerator-get_web_auth_session_key">get_web_auth_session_key</a>(url)<br>
|
|
2) Username and Password Authentication:<br>
|
|
a. network = get_*_network(API_KEY, API_SECRET)<br>
|
|
b. username = raw_input("Please enter your username: ")<br>
|
|
c. password_hash = pylast.<a href="#-md5">md5</a>(raw_input("Please enter your password: ")<br>
|
|
d. session_key = <a href="#SessionKeyGenerator">SessionKeyGenerator</a>(network).<a href="#SessionKeyGenerator-get_session_key">get_session_key</a>(username, password_hash)<br>
|
|
<br>
|
|
A session key's lifetime is infinie, unless the user provokes the rights of the given API Key.<br>
|
|
<br>
|
|
If you create a Network <a href="__builtin__.html#object">object</a> with just a API_KEY and API_SECRET and a username and a password_hash, a<br>
|
|
SESSION_KEY will be automatically generated for that network and stored in it so you don't have to do this<br>
|
|
manually, unless you want to.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%">Methods defined here:<br>
|
|
<dl><dt><a name="SessionKeyGenerator-__init__"><strong>__init__</strong></a>(self, network)</dt></dl>
|
|
|
|
<dl><dt><a name="SessionKeyGenerator-get_session_key"><strong>get_session_key</strong></a>(self, username, password_hash)</dt><dd><tt>Retrieve a session key with a username and a md5 hash of the user's password.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SessionKeyGenerator-get_web_auth_session_key"><strong>get_web_auth_session_key</strong></a>(self, url)</dt><dd><tt>Retrieves the session key of a web authorization process by its url.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SessionKeyGenerator-get_web_auth_url"><strong>get_web_auth_url</strong></a>(self)</dt><dd><tt>The user must open this page, and you first, then call <a href="#SessionKeyGenerator-get_web_auth_session_key">get_web_auth_session_key</a>(url) after that.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data descriptors defined here:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="Shout">class <strong>Shout</strong></a>(<a href="__builtin__.html#tuple">__builtin__.tuple</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt><a href="#Shout">Shout</a>(body, author, date)<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#Shout">Shout</a></dd>
|
|
<dd><a href="__builtin__.html#tuple">__builtin__.tuple</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="Shout-__getnewargs__"><strong>__getnewargs__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="Shout-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Static methods defined here:<br>
|
|
<dl><dt><a name="Shout-__new__"><strong>__new__</strong></a>(_cls, body, author, date)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors defined here:<br>
|
|
<dl><dt><strong>author</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>body</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>date</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods inherited from <a href="__builtin__.html#tuple">__builtin__.tuple</a>:<br>
|
|
<dl><dt><a name="Shout-__add__"><strong>__add__</strong></a>(...)</dt><dd><tt>x.<a href="#Shout-__add__">__add__</a>(y) <==> x+y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Shout-__contains__"><strong>__contains__</strong></a>(...)</dt><dd><tt>x.<a href="#Shout-__contains__">__contains__</a>(y) <==> y in x</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Shout-__eq__"><strong>__eq__</strong></a>(...)</dt><dd><tt>x.<a href="#Shout-__eq__">__eq__</a>(y) <==> x==y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Shout-__ge__"><strong>__ge__</strong></a>(...)</dt><dd><tt>x.<a href="#Shout-__ge__">__ge__</a>(y) <==> x>=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Shout-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#Shout-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Shout-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#Shout-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Shout-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#Shout-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br>
|
|
<br>
|
|
Use of negative indices is not supported.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Shout-__gt__"><strong>__gt__</strong></a>(...)</dt><dd><tt>x.<a href="#Shout-__gt__">__gt__</a>(y) <==> x>y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Shout-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#Shout-__hash__">__hash__</a>() <==> hash(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Shout-__iter__"><strong>__iter__</strong></a>(...)</dt><dd><tt>x.<a href="#Shout-__iter__">__iter__</a>() <==> iter(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Shout-__le__"><strong>__le__</strong></a>(...)</dt><dd><tt>x.<a href="#Shout-__le__">__le__</a>(y) <==> x<=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Shout-__len__"><strong>__len__</strong></a>(...)</dt><dd><tt>x.<a href="#Shout-__len__">__len__</a>() <==> len(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Shout-__lt__"><strong>__lt__</strong></a>(...)</dt><dd><tt>x.<a href="#Shout-__lt__">__lt__</a>(y) <==> x<y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Shout-__mul__"><strong>__mul__</strong></a>(...)</dt><dd><tt>x.<a href="#Shout-__mul__">__mul__</a>(n) <==> x*n</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Shout-__ne__"><strong>__ne__</strong></a>(...)</dt><dd><tt>x.<a href="#Shout-__ne__">__ne__</a>(y) <==> x!=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Shout-__rmul__"><strong>__rmul__</strong></a>(...)</dt><dd><tt>x.<a href="#Shout-__rmul__">__rmul__</a>(n) <==> n*x</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Shout-__sizeof__"><strong>__sizeof__</strong></a>(...)</dt><dd><tt>T.<a href="#Shout-__sizeof__">__sizeof__</a>() -- size of T in memory, in bytes</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Shout-count"><strong>count</strong></a>(...)</dt><dd><tt>T.<a href="#Shout-count">count</a>(value) -> integer -- return number of occurrences of value</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Shout-index"><strong>index</strong></a>(...)</dt><dd><tt>T.<a href="#Shout-index">index</a>(value, [start, [stop]]) -> integer -- return first index of value.<br>
|
|
Raises ValueError if the value is not present.</tt></dd></dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="SimilarItem">class <strong>SimilarItem</strong></a>(<a href="__builtin__.html#tuple">__builtin__.tuple</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt><a href="#SimilarItem">SimilarItem</a>(item, match)<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#SimilarItem">SimilarItem</a></dd>
|
|
<dd><a href="__builtin__.html#tuple">__builtin__.tuple</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="SimilarItem-__getnewargs__"><strong>__getnewargs__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="SimilarItem-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Static methods defined here:<br>
|
|
<dl><dt><a name="SimilarItem-__new__"><strong>__new__</strong></a>(_cls, item, match)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors defined here:<br>
|
|
<dl><dt><strong>item</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>match</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods inherited from <a href="__builtin__.html#tuple">__builtin__.tuple</a>:<br>
|
|
<dl><dt><a name="SimilarItem-__add__"><strong>__add__</strong></a>(...)</dt><dd><tt>x.<a href="#SimilarItem-__add__">__add__</a>(y) <==> x+y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SimilarItem-__contains__"><strong>__contains__</strong></a>(...)</dt><dd><tt>x.<a href="#SimilarItem-__contains__">__contains__</a>(y) <==> y in x</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SimilarItem-__eq__"><strong>__eq__</strong></a>(...)</dt><dd><tt>x.<a href="#SimilarItem-__eq__">__eq__</a>(y) <==> x==y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SimilarItem-__ge__"><strong>__ge__</strong></a>(...)</dt><dd><tt>x.<a href="#SimilarItem-__ge__">__ge__</a>(y) <==> x>=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SimilarItem-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#SimilarItem-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SimilarItem-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#SimilarItem-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SimilarItem-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#SimilarItem-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br>
|
|
<br>
|
|
Use of negative indices is not supported.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SimilarItem-__gt__"><strong>__gt__</strong></a>(...)</dt><dd><tt>x.<a href="#SimilarItem-__gt__">__gt__</a>(y) <==> x>y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SimilarItem-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#SimilarItem-__hash__">__hash__</a>() <==> hash(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SimilarItem-__iter__"><strong>__iter__</strong></a>(...)</dt><dd><tt>x.<a href="#SimilarItem-__iter__">__iter__</a>() <==> iter(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SimilarItem-__le__"><strong>__le__</strong></a>(...)</dt><dd><tt>x.<a href="#SimilarItem-__le__">__le__</a>(y) <==> x<=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SimilarItem-__len__"><strong>__len__</strong></a>(...)</dt><dd><tt>x.<a href="#SimilarItem-__len__">__len__</a>() <==> len(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SimilarItem-__lt__"><strong>__lt__</strong></a>(...)</dt><dd><tt>x.<a href="#SimilarItem-__lt__">__lt__</a>(y) <==> x<y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SimilarItem-__mul__"><strong>__mul__</strong></a>(...)</dt><dd><tt>x.<a href="#SimilarItem-__mul__">__mul__</a>(n) <==> x*n</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SimilarItem-__ne__"><strong>__ne__</strong></a>(...)</dt><dd><tt>x.<a href="#SimilarItem-__ne__">__ne__</a>(y) <==> x!=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SimilarItem-__rmul__"><strong>__rmul__</strong></a>(...)</dt><dd><tt>x.<a href="#SimilarItem-__rmul__">__rmul__</a>(n) <==> n*x</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SimilarItem-__sizeof__"><strong>__sizeof__</strong></a>(...)</dt><dd><tt>T.<a href="#SimilarItem-__sizeof__">__sizeof__</a>() -- size of T in memory, in bytes</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SimilarItem-count"><strong>count</strong></a>(...)</dt><dd><tt>T.<a href="#SimilarItem-count">count</a>(value) -> integer -- return number of occurrences of value</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SimilarItem-index"><strong>index</strong></a>(...)</dt><dd><tt>T.<a href="#SimilarItem-index">index</a>(value, [start, [stop]]) -> integer -- return first index of value.<br>
|
|
Raises ValueError if the value is not present.</tt></dd></dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="Tag">class <strong>Tag</strong></a>(<a href="pylast.html#_BaseObject">_BaseObject</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>A Last.fm <a href="__builtin__.html#object">object</a> tag.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#Tag">Tag</a></dd>
|
|
<dd><a href="pylast.html#_BaseObject">_BaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="Tag-__eq__"><strong>__eq__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="Tag-__init__"><strong>__init__</strong></a>(self, name, network)</dt></dl>
|
|
|
|
<dl><dt><a name="Tag-__ne__"><strong>__ne__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="Tag-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="Tag-__str__"><strong>__str__</strong></a> = r(*args)</dt></dl>
|
|
|
|
<dl><dt><a name="Tag-get_name"><strong>get_name</strong></a>(self, properly_capitalized<font color="#909090">=False</font>)</dt><dd><tt>Returns the name of the tag.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Tag-get_similar"><strong>get_similar</strong></a>(self)</dt><dd><tt>Returns the tags similar to this one, ordered by similarity.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Tag-get_top_albums"><strong>get_top_albums</strong></a>(self)</dt><dd><tt>Retuns a list of the top albums.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Tag-get_top_artists"><strong>get_top_artists</strong></a>(self)</dt><dd><tt>Returns a sequence of the most played artists.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Tag-get_top_tracks"><strong>get_top_tracks</strong></a>(self)</dt><dd><tt>Returns a list of the most played Tracks by this artist.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Tag-get_url"><strong>get_url</strong></a>(self, domain_name<font color="#909090">=0</font>)</dt><dd><tt>Returns the url of the tag page on the network. <br>
|
|
* domain_name: The network's language domain. Possible values:<br>
|
|
o DOMAIN_ENGLISH<br>
|
|
o DOMAIN_GERMAN<br>
|
|
o DOMAIN_SPANISH<br>
|
|
o DOMAIN_FRENCH<br>
|
|
o DOMAIN_ITALIAN<br>
|
|
o DOMAIN_POLISH<br>
|
|
o DOMAIN_PORTUGUESE<br>
|
|
o DOMAIN_SWEDISH<br>
|
|
o DOMAIN_TURKISH<br>
|
|
o DOMAIN_RUSSIAN<br>
|
|
o DOMAIN_JAPANESE<br>
|
|
o DOMAIN_CHINESE</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Tag-get_weekly_artist_charts"><strong>get_weekly_artist_charts</strong></a>(self, from_date<font color="#909090">=None</font>, to_date<font color="#909090">=None</font>)</dt><dd><tt>Returns the weekly artist charts for the week starting from the from_date value to the to_date value.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Tag-get_weekly_chart_dates"><strong>get_weekly_chart_dates</strong></a>(self)</dt><dd><tt>Returns a list of From and To tuples for the available charts.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data and other attributes defined here:<br>
|
|
<dl><dt><strong>name</strong> = None</dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><a name="Tag-__hash__"><strong>__hash__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>network</strong> = None</dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="TagSearch">class <strong>TagSearch</strong></a>(<a href="pylast.html#_Search">_Search</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>Search for a tag by tag name.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#TagSearch">TagSearch</a></dd>
|
|
<dd><a href="pylast.html#_Search">_Search</a></dd>
|
|
<dd><a href="pylast.html#_BaseObject">_BaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="TagSearch-__init__"><strong>__init__</strong></a>(self, tag_name, network)</dt></dl>
|
|
|
|
<dl><dt><a name="TagSearch-get_next_page"><strong>get_next_page</strong></a>(self)</dt><dd><tt>Returns the next page of results as a sequence of <a href="#Tag">Tag</a> objects.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_Search">_Search</a>:<br>
|
|
<dl><dt><a name="TagSearch-get_total_result_count"><strong>get_total_result_count</strong></a>(self)</dt><dd><tt>Returns the total count of all the results.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><a name="TagSearch-__hash__"><strong>__hash__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>network</strong> = None</dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="TopItem">class <strong>TopItem</strong></a>(<a href="__builtin__.html#tuple">__builtin__.tuple</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt><a href="#TopItem">TopItem</a>(item, weight)<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#TopItem">TopItem</a></dd>
|
|
<dd><a href="__builtin__.html#tuple">__builtin__.tuple</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="TopItem-__getnewargs__"><strong>__getnewargs__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="TopItem-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Static methods defined here:<br>
|
|
<dl><dt><a name="TopItem-__new__"><strong>__new__</strong></a>(_cls, item, weight)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors defined here:<br>
|
|
<dl><dt><strong>item</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>weight</strong></dt>
|
|
<dd><tt>itemgetter(item, ...) --> itemgetter object<br>
|
|
<br>
|
|
Return a callable object that fetches the given item(s) from its operand.<br>
|
|
After, f=itemgetter(2), the call f(r) returns r[2].<br>
|
|
After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3])</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods inherited from <a href="__builtin__.html#tuple">__builtin__.tuple</a>:<br>
|
|
<dl><dt><a name="TopItem-__add__"><strong>__add__</strong></a>(...)</dt><dd><tt>x.<a href="#TopItem-__add__">__add__</a>(y) <==> x+y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="TopItem-__contains__"><strong>__contains__</strong></a>(...)</dt><dd><tt>x.<a href="#TopItem-__contains__">__contains__</a>(y) <==> y in x</tt></dd></dl>
|
|
|
|
<dl><dt><a name="TopItem-__eq__"><strong>__eq__</strong></a>(...)</dt><dd><tt>x.<a href="#TopItem-__eq__">__eq__</a>(y) <==> x==y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="TopItem-__ge__"><strong>__ge__</strong></a>(...)</dt><dd><tt>x.<a href="#TopItem-__ge__">__ge__</a>(y) <==> x>=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="TopItem-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#TopItem-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="TopItem-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#TopItem-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="TopItem-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#TopItem-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br>
|
|
<br>
|
|
Use of negative indices is not supported.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="TopItem-__gt__"><strong>__gt__</strong></a>(...)</dt><dd><tt>x.<a href="#TopItem-__gt__">__gt__</a>(y) <==> x>y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="TopItem-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#TopItem-__hash__">__hash__</a>() <==> hash(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="TopItem-__iter__"><strong>__iter__</strong></a>(...)</dt><dd><tt>x.<a href="#TopItem-__iter__">__iter__</a>() <==> iter(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="TopItem-__le__"><strong>__le__</strong></a>(...)</dt><dd><tt>x.<a href="#TopItem-__le__">__le__</a>(y) <==> x<=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="TopItem-__len__"><strong>__len__</strong></a>(...)</dt><dd><tt>x.<a href="#TopItem-__len__">__len__</a>() <==> len(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="TopItem-__lt__"><strong>__lt__</strong></a>(...)</dt><dd><tt>x.<a href="#TopItem-__lt__">__lt__</a>(y) <==> x<y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="TopItem-__mul__"><strong>__mul__</strong></a>(...)</dt><dd><tt>x.<a href="#TopItem-__mul__">__mul__</a>(n) <==> x*n</tt></dd></dl>
|
|
|
|
<dl><dt><a name="TopItem-__ne__"><strong>__ne__</strong></a>(...)</dt><dd><tt>x.<a href="#TopItem-__ne__">__ne__</a>(y) <==> x!=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="TopItem-__rmul__"><strong>__rmul__</strong></a>(...)</dt><dd><tt>x.<a href="#TopItem-__rmul__">__rmul__</a>(n) <==> n*x</tt></dd></dl>
|
|
|
|
<dl><dt><a name="TopItem-__sizeof__"><strong>__sizeof__</strong></a>(...)</dt><dd><tt>T.<a href="#TopItem-__sizeof__">__sizeof__</a>() -- size of T in memory, in bytes</tt></dd></dl>
|
|
|
|
<dl><dt><a name="TopItem-count"><strong>count</strong></a>(...)</dt><dd><tt>T.<a href="#TopItem-count">count</a>(value) -> integer -- return number of occurrences of value</tt></dd></dl>
|
|
|
|
<dl><dt><a name="TopItem-index"><strong>index</strong></a>(...)</dt><dd><tt>T.<a href="#TopItem-index">index</a>(value, [start, [stop]]) -> integer -- return first index of value.<br>
|
|
Raises ValueError if the value is not present.</tt></dd></dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="Track">class <strong>Track</strong></a>(<a href="pylast.html#_BaseObject">_BaseObject</a>, <a href="pylast.html#_Taggable">_Taggable</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>A Last.fm track.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#Track">Track</a></dd>
|
|
<dd><a href="pylast.html#_BaseObject">_BaseObject</a></dd>
|
|
<dd><a href="pylast.html#_Taggable">_Taggable</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="Track-__eq__"><strong>__eq__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="Track-__init__"><strong>__init__</strong></a>(self, artist, title, network)</dt></dl>
|
|
|
|
<dl><dt><a name="Track-__ne__"><strong>__ne__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="Track-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="Track-__str__"><strong>__str__</strong></a> = r(*args)</dt></dl>
|
|
|
|
<dl><dt><a name="Track-ban"><strong>ban</strong></a>(self)</dt><dd><tt>Ban this track from ever playing on the radio.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-get_album"><strong>get_album</strong></a>(self)</dt><dd><tt>Returns the album <a href="__builtin__.html#object">object</a> of this track.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-get_artist"><strong>get_artist</strong></a>(self)</dt><dd><tt>Returns the associated <a href="#Artist">Artist</a> <a href="__builtin__.html#object">object</a>.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-get_duration"><strong>get_duration</strong></a>(self)</dt><dd><tt>Returns the track duration.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-get_id"><strong>get_id</strong></a>(self)</dt><dd><tt>Returns the track id on the network.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-get_listener_count"><strong>get_listener_count</strong></a>(self)</dt><dd><tt>Returns the listener count.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-get_mbid"><strong>get_mbid</strong></a>(self)</dt><dd><tt>Returns the MusicBrainz ID of this track.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-get_name"><strong>get_name</strong></a>(self, properly_capitalized<font color="#909090">=False</font>)</dt><dd><tt>Returns the track title (alias to <a href="#Track">Track</a>.get_title).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-get_playcount"><strong>get_playcount</strong></a>(self)</dt><dd><tt>Returns the play count.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-get_shouts"><strong>get_shouts</strong></a>(self, limit<font color="#909090">=50</font>)</dt><dd><tt>Returns a sequqence of <a href="#Shout">Shout</a> objects</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-get_similar"><strong>get_similar</strong></a>(self)</dt><dd><tt>Returns similar tracks for this track on the network, based on listening data.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-get_title"><strong>get_title</strong></a>(self, properly_capitalized<font color="#909090">=False</font>)</dt><dd><tt>Returns the track title.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-get_top_fans"><strong>get_top_fans</strong></a>(self, limit<font color="#909090">=None</font>)</dt><dd><tt>Returns a list of the Users who played this track.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-get_url"><strong>get_url</strong></a>(self, domain_name<font color="#909090">=0</font>)</dt><dd><tt>Returns the url of the track page on the network. <br>
|
|
* domain_name: The network's language domain. Possible values:<br>
|
|
o DOMAIN_ENGLISH<br>
|
|
o DOMAIN_GERMAN<br>
|
|
o DOMAIN_SPANISH<br>
|
|
o DOMAIN_FRENCH<br>
|
|
o DOMAIN_ITALIAN<br>
|
|
o DOMAIN_POLISH<br>
|
|
o DOMAIN_PORTUGUESE<br>
|
|
o DOMAIN_SWEDISH<br>
|
|
o DOMAIN_TURKISH<br>
|
|
o DOMAIN_RUSSIAN<br>
|
|
o DOMAIN_JAPANESE<br>
|
|
o DOMAIN_CHINESE</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-get_wiki_content"><strong>get_wiki_content</strong></a>(self)</dt><dd><tt>Returns the content of the wiki.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-get_wiki_published_date"><strong>get_wiki_published_date</strong></a>(self)</dt><dd><tt>Returns the date of publishing this version of the wiki.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-get_wiki_summary"><strong>get_wiki_summary</strong></a>(self)</dt><dd><tt>Returns the summary of the wiki.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-is_fulltrack_available"><strong>is_fulltrack_available</strong></a>(self)</dt><dd><tt>Returns True if the fulltrack is available for streaming.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-is_streamable"><strong>is_streamable</strong></a>(self)</dt><dd><tt>Returns True if the track is available at Last.fm.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-love"><strong>love</strong></a>(self)</dt><dd><tt>Adds the track to the user's loved tracks.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-share"><strong>share</strong></a>(self, users, message<font color="#909090">=None</font>)</dt><dd><tt>Shares this track (sends out recommendations). <br>
|
|
* users: A list that can contain usernames, emails, <a href="#User">User</a> objects, or all of them.<br>
|
|
* message: A message to include in the recommendation message.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data and other attributes defined here:<br>
|
|
<dl><dt><strong>artist</strong> = None</dl>
|
|
|
|
<dl><dt><strong>title</strong> = None</dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><a name="Track-__hash__"><strong>__hash__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>network</strong> = None</dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_Taggable">_Taggable</a>:<br>
|
|
<dl><dt><a name="Track-add_tag"><strong>add_tag</strong></a>(self, tag)</dt><dd><tt>Adds one tag.<br>
|
|
* tag: a tag name or a <a href="#Tag">Tag</a> <a href="__builtin__.html#object">object</a>.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-add_tags"><strong>add_tags</strong></a>(self, tags)</dt><dd><tt>Adds one or several tags.<br>
|
|
* tags: A sequence of tag names or <a href="#Tag">Tag</a> objects.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-clear_tags"><strong>clear_tags</strong></a>(self)</dt><dd><tt>Clears all the user-set tags.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-get_tags"><strong>get_tags</strong></a>(self)</dt><dd><tt>Returns a list of the tags set by the user to this <a href="__builtin__.html#object">object</a>.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-get_top_tags"><strong>get_top_tags</strong></a>(self, limit<font color="#909090">=None</font>)</dt><dd><tt>Returns a list of the most frequently used Tags on this <a href="__builtin__.html#object">object</a>.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-remove_tag"><strong>remove_tag</strong></a>(self, tag)</dt><dd><tt>Remove a user's tag from this <a href="__builtin__.html#object">object</a>.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-remove_tags"><strong>remove_tags</strong></a>(self, tags)</dt><dd><tt>Removes one or several tags from this <a href="__builtin__.html#object">object</a>.<br>
|
|
* tags: a sequence of tag names or <a href="#Tag">Tag</a> objects.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Track-set_tags"><strong>set_tags</strong></a>(self, tags)</dt><dd><tt>Sets this <a href="__builtin__.html#object">object</a>'s tags to only those tags.<br>
|
|
* tags: a sequence of tag names or <a href="#Tag">Tag</a> objects.</tt></dd></dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="TrackSearch">class <strong>TrackSearch</strong></a>(<a href="pylast.html#_Search">_Search</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>Search for a track by track title. If you don't wanna narrow the results down<br>
|
|
by specifying the artist name, set it to empty string.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#TrackSearch">TrackSearch</a></dd>
|
|
<dd><a href="pylast.html#_Search">_Search</a></dd>
|
|
<dd><a href="pylast.html#_BaseObject">_BaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="TrackSearch-__init__"><strong>__init__</strong></a>(self, artist_name, track_title, network)</dt></dl>
|
|
|
|
<dl><dt><a name="TrackSearch-get_next_page"><strong>get_next_page</strong></a>(self)</dt><dd><tt>Returns the next page of results as a sequence of <a href="#Track">Track</a> objects.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_Search">_Search</a>:<br>
|
|
<dl><dt><a name="TrackSearch-get_total_result_count"><strong>get_total_result_count</strong></a>(self)</dt><dd><tt>Returns the total count of all the results.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><a name="TrackSearch-__hash__"><strong>__hash__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>network</strong> = None</dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="User">class <strong>User</strong></a>(<a href="pylast.html#_BaseObject">_BaseObject</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>A Last.fm user.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#User">User</a></dd>
|
|
<dd><a href="pylast.html#_BaseObject">_BaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="User-__eq__"><strong>__eq__</strong></a>(self, another)</dt></dl>
|
|
|
|
<dl><dt><a name="User-__init__"><strong>__init__</strong></a>(self, user_name, network)</dt></dl>
|
|
|
|
<dl><dt><a name="User-__ne__"><strong>__ne__</strong></a>(self, another)</dt></dl>
|
|
|
|
<dl><dt><a name="User-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="User-__str__"><strong>__str__</strong></a> = r(*args)</dt></dl>
|
|
|
|
<dl><dt><a name="User-compare_with_user"><strong>compare_with_user</strong></a>(self, user, shared_artists_limit<font color="#909090">=None</font>)</dt><dd><tt>Compare this user with another Last.fm user.<br>
|
|
Returns a sequence (tasteometer_score, (shared_artist1, shared_artist2, ...))<br>
|
|
user: A <a href="#User">User</a> <a href="__builtin__.html#object">object</a> or a username string/unicode <a href="__builtin__.html#object">object</a>.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_age"><strong>get_age</strong></a>(self)</dt><dd><tt>Returns the user's age.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_country"><strong>get_country</strong></a>(self)</dt><dd><tt>Returns the name of the country of the user.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_friends"><strong>get_friends</strong></a>(self, limit<font color="#909090">=50</font>)</dt><dd><tt>Returns a list of the user's friends.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_gender"><strong>get_gender</strong></a>(self)</dt><dd><tt>Returns the user's gender. Either USER_MALE or USER_FEMALE.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_id"><strong>get_id</strong></a>(self)</dt><dd><tt>Returns the user id.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_image"><strong>get_image</strong></a>(self)</dt><dd><tt>Returns the user's avatar.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_language"><strong>get_language</strong></a>(self)</dt><dd><tt>Returns the language code of the language used by the user.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_library"><strong>get_library</strong></a>(self)</dt><dd><tt>Returns the associated <a href="#Library">Library</a> <a href="__builtin__.html#object">object</a>.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_loved_tracks"><strong>get_loved_tracks</strong></a>(self, limit<font color="#909090">=50</font>)</dt><dd><tt>Returns this user's loved track as a sequence of <a href="#LovedTrack">LovedTrack</a> objects<br>
|
|
in reverse order of their timestamp, all the way back to the first track.<br>
|
|
<br>
|
|
If limit==None, it will try to pull all the available data.<br>
|
|
<br>
|
|
This method uses caching. Enable caching only if you're pulling a<br>
|
|
large amount of data.<br>
|
|
<br>
|
|
Use <a href="#-extract_items">extract_items</a>() with the return of this function to<br>
|
|
get only a sequence of <a href="#Track">Track</a> objects with no playback dates.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_name"><strong>get_name</strong></a>(self, properly_capitalized<font color="#909090">=False</font>)</dt><dd><tt>Returns the nuser name.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_neighbours"><strong>get_neighbours</strong></a>(self, limit<font color="#909090">=50</font>)</dt><dd><tt>Returns a list of the user's friends.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_now_playing"><strong>get_now_playing</strong></a>(self)</dt><dd><tt>Returns the currently playing track, or None if nothing is playing.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_past_events"><strong>get_past_events</strong></a>(self, limit<font color="#909090">=50</font>)</dt><dd><tt>Returns a sequence of <a href="#Event">Event</a> objects<br>
|
|
if limit==None it will return all</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_playcount"><strong>get_playcount</strong></a>(self)</dt><dd><tt>Returns the user's playcount so far.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_playlists"><strong>get_playlists</strong></a>(self)</dt><dd><tt>Returns a list of Playlists that this user owns.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_recent_tracks"><strong>get_recent_tracks</strong></a>(self, limit<font color="#909090">=10</font>)</dt><dd><tt>Returns this user's played track as a sequence of <a href="#PlayedTrack">PlayedTrack</a> objects<br>
|
|
in reverse order of their playtime, all the way back to the first track.<br>
|
|
<br>
|
|
If limit==None, it will try to pull all the available data.<br>
|
|
<br>
|
|
This method uses caching. Enable caching only if you're pulling a<br>
|
|
large amount of data.<br>
|
|
<br>
|
|
Use <a href="#-extract_items">extract_items</a>() with the return of this function to<br>
|
|
get only a sequence of <a href="#Track">Track</a> objects with no playback dates.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_shouts"><strong>get_shouts</strong></a>(self, limit<font color="#909090">=50</font>)</dt><dd><tt>Returns a sequqence of <a href="#Shout">Shout</a> objects</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_top_albums"><strong>get_top_albums</strong></a>(self, period<font color="#909090">='overall'</font>)</dt><dd><tt>Returns the top albums played by a user. <br>
|
|
* period: The period of time. Possible values:<br>
|
|
o PERIOD_OVERALL<br>
|
|
o PERIOD_7DAYS<br>
|
|
o PERIOD_3MONTHS<br>
|
|
o PERIOD_6MONTHS<br>
|
|
o PERIOD_12MONTHS</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_top_artists"><strong>get_top_artists</strong></a>(self, period<font color="#909090">='overall'</font>)</dt><dd><tt>Returns the top artists played by a user. <br>
|
|
* period: The period of time. Possible values:<br>
|
|
o PERIOD_OVERALL<br>
|
|
o PERIOD_7DAYS<br>
|
|
o PERIOD_3MONTHS<br>
|
|
o PERIOD_6MONTHS<br>
|
|
o PERIOD_12MONTHS</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_top_tags"><strong>get_top_tags</strong></a>(self, limit<font color="#909090">=None</font>)</dt><dd><tt>Returns a sequence of the top tags used by this user with their counts as (<a href="#Tag">Tag</a>, tagcount). <br>
|
|
* limit: The limit of how many tags to return.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_top_tracks"><strong>get_top_tracks</strong></a>(self, period<font color="#909090">='overall'</font>)</dt><dd><tt>Returns the top tracks played by a user. <br>
|
|
* period: The period of time. Possible values:<br>
|
|
o PERIOD_OVERALL<br>
|
|
o PERIOD_7DAYS<br>
|
|
o PERIOD_3MONTHS<br>
|
|
o PERIOD_6MONTHS<br>
|
|
o PERIOD_12MONTHS</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_upcoming_events"><strong>get_upcoming_events</strong></a>(self)</dt><dd><tt>Returns all the upcoming events for this user.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_url"><strong>get_url</strong></a>(self, domain_name<font color="#909090">=0</font>)</dt><dd><tt>Returns the url of the user page on the network. <br>
|
|
* domain_name: The network's language domain. Possible values:<br>
|
|
o DOMAIN_ENGLISH<br>
|
|
o DOMAIN_GERMAN<br>
|
|
o DOMAIN_SPANISH<br>
|
|
o DOMAIN_FRENCH<br>
|
|
o DOMAIN_ITALIAN<br>
|
|
o DOMAIN_POLISH<br>
|
|
o DOMAIN_PORTUGUESE<br>
|
|
o DOMAIN_SWEDISH<br>
|
|
o DOMAIN_TURKISH<br>
|
|
o DOMAIN_RUSSIAN<br>
|
|
o DOMAIN_JAPANESE<br>
|
|
o DOMAIN_CHINESE</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_weekly_album_charts"><strong>get_weekly_album_charts</strong></a>(self, from_date<font color="#909090">=None</font>, to_date<font color="#909090">=None</font>)</dt><dd><tt>Returns the weekly album charts for the week starting from the from_date value to the to_date value.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_weekly_artist_charts"><strong>get_weekly_artist_charts</strong></a>(self, from_date<font color="#909090">=None</font>, to_date<font color="#909090">=None</font>)</dt><dd><tt>Returns the weekly artist charts for the week starting from the from_date value to the to_date value.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_weekly_chart_dates"><strong>get_weekly_chart_dates</strong></a>(self)</dt><dd><tt>Returns a list of From and To tuples for the available charts.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-get_weekly_track_charts"><strong>get_weekly_track_charts</strong></a>(self, from_date<font color="#909090">=None</font>, to_date<font color="#909090">=None</font>)</dt><dd><tt>Returns the weekly track charts for the week starting from the from_date value to the to_date value.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-is_subscriber"><strong>is_subscriber</strong></a>(self)</dt><dd><tt>Returns whether the user is a subscriber or not. True or False.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="User-shout"><strong>shout</strong></a>(self, message)</dt><dd><tt>Post a shout</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data and other attributes defined here:<br>
|
|
<dl><dt><strong>name</strong> = None</dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><a name="User-__hash__"><strong>__hash__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>network</strong> = None</dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="Venue">class <strong>Venue</strong></a>(<a href="pylast.html#_BaseObject">_BaseObject</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>A venue where events are held.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#Venue">Venue</a></dd>
|
|
<dd><a href="pylast.html#_BaseObject">_BaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="Venue-__eq__"><strong>__eq__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="Venue-__init__"><strong>__init__</strong></a>(self, id, network)</dt></dl>
|
|
|
|
<dl><dt><a name="Venue-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="Venue-__str__"><strong>__str__</strong></a> = r(*args)</dt></dl>
|
|
|
|
<dl><dt><a name="Venue-get_id"><strong>get_id</strong></a>(self)</dt><dd><tt>Returns the id of the venue.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Venue-get_past_events"><strong>get_past_events</strong></a>(self)</dt><dd><tt>Returns the past events held in this venue.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Venue-get_upcoming_events"><strong>get_upcoming_events</strong></a>(self)</dt><dd><tt>Returns the upcoming events in this venue.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data and other attributes defined here:<br>
|
|
<dl><dt><strong>id</strong> = None</dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><a name="Venue-__hash__"><strong>__hash__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>network</strong> = None</dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="VenueSearch">class <strong>VenueSearch</strong></a>(<a href="pylast.html#_Search">_Search</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>Search for a venue by its name. If you don't wanna narrow the results down<br>
|
|
by specifying a country, set it to empty string.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#VenueSearch">VenueSearch</a></dd>
|
|
<dd><a href="pylast.html#_Search">_Search</a></dd>
|
|
<dd><a href="pylast.html#_BaseObject">_BaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="VenueSearch-__init__"><strong>__init__</strong></a>(self, venue_name, country_name, network)</dt></dl>
|
|
|
|
<dl><dt><a name="VenueSearch-get_next_page"><strong>get_next_page</strong></a>(self)</dt><dd><tt>Returns the next page of results as a sequence of <a href="#Track">Track</a> objects.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_Search">_Search</a>:<br>
|
|
<dl><dt><a name="VenueSearch-get_total_result_count"><strong>get_total_result_count</strong></a>(self)</dt><dd><tt>Returns the total count of all the results.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><a name="VenueSearch-__hash__"><strong>__hash__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>network</strong> = None</dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="WSError">class <strong>WSError</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt><a href="exceptions.html#Exception">Exception</a> related to the Network web service<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#WSError">WSError</a></dd>
|
|
<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
|
|
<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="WSError-__init__"><strong>__init__</strong></a>(self, network, status, details)</dt></dl>
|
|
|
|
<dl><dt><a name="WSError-__str__"><strong>__str__</strong></a> = r(*args)</dt></dl>
|
|
|
|
<dl><dt><a name="WSError-get_id"><strong>get_id</strong></a>(self)</dt><dd><tt>Returns the exception ID, from one of the following:<br>
|
|
STATUS_INVALID_SERVICE = 2<br>
|
|
STATUS_INVALID_METHOD = 3<br>
|
|
STATUS_AUTH_FAILED = 4<br>
|
|
STATUS_INVALID_FORMAT = 5<br>
|
|
STATUS_INVALID_PARAMS = 6<br>
|
|
STATUS_INVALID_RESOURCE = 7<br>
|
|
STATUS_TOKEN_ERROR = 8<br>
|
|
STATUS_INVALID_SK = 9<br>
|
|
STATUS_INVALID_API_KEY = 10<br>
|
|
STATUS_OFFLINE = 11<br>
|
|
STATUS_SUBSCRIBERS_ONLY = 12<br>
|
|
STATUS_TOKEN_UNAUTHORIZED = 14<br>
|
|
STATUS_TOKEN_EXPIRED = 15</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data descriptors defined here:<br>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
|
|
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#WSError-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
|
|
<dl><dt><a name="WSError-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#WSError-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="WSError-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#WSError-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="WSError-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#WSError-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="WSError-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#WSError-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br>
|
|
<br>
|
|
Use of negative indices is not supported.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="WSError-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
|
|
|
|
<dl><dt><a name="WSError-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#WSError-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="WSError-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#WSError-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl>
|
|
|
|
<dl><dt><a name="WSError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
|
|
|
|
<dl><dt><a name="WSError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
</dl>
|
|
<dl><dt><strong>args</strong></dt>
|
|
</dl>
|
|
<dl><dt><strong>message</strong></dt>
|
|
</dl>
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="XSPF">class <strong>XSPF</strong></a>(<a href="pylast.html#_BaseObject">_BaseObject</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>A Last.fm <a href="#XSPF">XSPF</a> playlist.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="pylast.html#XSPF">XSPF</a></dd>
|
|
<dd><a href="pylast.html#_BaseObject">_BaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="XSPF-__eq__"><strong>__eq__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="XSPF-__init__"><strong>__init__</strong></a>(self, uri, network)</dt></dl>
|
|
|
|
<dl><dt><a name="XSPF-__ne__"><strong>__ne__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="XSPF-__str__"><strong>__str__</strong></a> = r(*args)</dt></dl>
|
|
|
|
<dl><dt><a name="XSPF-get_tracks"><strong>get_tracks</strong></a>(self)</dt><dd><tt>Returns the tracks on this playlist.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="XSPF-get_uri"><strong>get_uri</strong></a>(self)</dt><dd><tt>Returns the Last.fm playlist URI.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data and other attributes defined here:<br>
|
|
<dl><dt><strong>uri</strong> = None</dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><a name="XSPF-__hash__"><strong>__hash__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Data and other attributes inherited from <a href="pylast.html#_BaseObject">_BaseObject</a>:<br>
|
|
<dl><dt><strong>network</strong> = None</dl>
|
|
|
|
</td></tr></table></td></tr></table><p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#eeaa77">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl><dt><a name="-extract_items"><strong>extract_items</strong></a>(topitems_or_libraryitems)</dt><dd><tt>Extracts a sequence of items from a sequence of <a href="#TopItem">TopItem</a> or <a href="#LibraryItem">LibraryItem</a> objects.</tt></dd></dl>
|
|
<dl><dt><a name="-get_lastfm_network"><strong>get_lastfm_network</strong></a>(api_key<font color="#909090">=''</font>, api_secret<font color="#909090">=''</font>, session_key<font color="#909090">=''</font>, username<font color="#909090">=''</font>, password_hash<font color="#909090">=''</font>)</dt><dd><tt>Returns a preconfigured _Network <a href="__builtin__.html#object">object</a> for Last.fm<br>
|
|
<br>
|
|
api_key: a provided API_KEY<br>
|
|
api_secret: a provided API_SECRET<br>
|
|
session_key: a generated session_key or None<br>
|
|
username: a username of a valid user<br>
|
|
password_hash: the output of pylast.<a href="#-md5">md5</a>(password) where password is the user's password<br>
|
|
<br>
|
|
if username and password_hash were provided and not session_key, session_key will be<br>
|
|
generated automatically when needed.<br>
|
|
<br>
|
|
Either a valid session_key or a combination of username and password_hash must be present for scrobbling.<br>
|
|
<br>
|
|
Most read-only webservices only require an api_key and an api_secret, see about obtaining them from:<br>
|
|
<a href="http://www.last.fm/api/account">http://www.last.fm/api/account</a></tt></dd></dl>
|
|
<dl><dt><a name="-get_librefm_network"><strong>get_librefm_network</strong></a>(api_key<font color="#909090">=''</font>, api_secret<font color="#909090">=''</font>, session_key<font color="#909090">=''</font>, username<font color="#909090">=''</font>, password_hash<font color="#909090">=''</font>)</dt><dd><tt>Returns a preconfigured _Network <a href="__builtin__.html#object">object</a> for Libre.fm<br>
|
|
<br>
|
|
api_key: a provided API_KEY<br>
|
|
api_secret: a provided API_SECRET<br>
|
|
session_key: a generated session_key or None<br>
|
|
username: a username of a valid user<br>
|
|
password_hash: the output of pylast.<a href="#-md5">md5</a>(password) where password is the user's password<br>
|
|
<br>
|
|
if username and password_hash were provided and not session_key, session_key will be<br>
|
|
generated automatically when needed.</tt></dd></dl>
|
|
<dl><dt><a name="-md5"><strong>md5</strong></a>(text)</dt><dd><tt>Returns the md5 hash of a string.</tt></dd></dl>
|
|
</td></tr></table><p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#55aa55">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
|
<td width="100%"><strong>COVER_EXTRA_LARGE</strong> = 3<br>
|
|
<strong>COVER_LARGE</strong> = 2<br>
|
|
<strong>COVER_MEDIUM</strong> = 1<br>
|
|
<strong>COVER_MEGA</strong> = 4<br>
|
|
<strong>COVER_SMALL</strong> = 0<br>
|
|
<strong>DOMAIN_CHINESE</strong> = 11<br>
|
|
<strong>DOMAIN_ENGLISH</strong> = 0<br>
|
|
<strong>DOMAIN_FRENCH</strong> = 3<br>
|
|
<strong>DOMAIN_GERMAN</strong> = 1<br>
|
|
<strong>DOMAIN_ITALIAN</strong> = 4<br>
|
|
<strong>DOMAIN_JAPANESE</strong> = 10<br>
|
|
<strong>DOMAIN_POLISH</strong> = 5<br>
|
|
<strong>DOMAIN_PORTUGUESE</strong> = 6<br>
|
|
<strong>DOMAIN_RUSSIAN</strong> = 9<br>
|
|
<strong>DOMAIN_SPANISH</strong> = 2<br>
|
|
<strong>DOMAIN_SWEDISH</strong> = 7<br>
|
|
<strong>DOMAIN_TURKISH</strong> = 8<br>
|
|
<strong>EVENT_ATTENDING</strong> = '0'<br>
|
|
<strong>EVENT_MAYBE_ATTENDING</strong> = '1'<br>
|
|
<strong>EVENT_NOT_ATTENDING</strong> = '2'<br>
|
|
<strong>IMAGES_ORDER_DATE</strong> = 'dateadded'<br>
|
|
<strong>IMAGES_ORDER_POPULARITY</strong> = 'popularity'<br>
|
|
<strong>PERIOD_12MONTHS</strong> = '12month'<br>
|
|
<strong>PERIOD_3MONTHS</strong> = '3month'<br>
|
|
<strong>PERIOD_6MONTHS</strong> = '6month'<br>
|
|
<strong>PERIOD_7DAYS</strong> = '7day'<br>
|
|
<strong>PERIOD_OVERALL</strong> = 'overall'<br>
|
|
<strong>SCROBBLE_MODE_BANNED</strong> = 'B'<br>
|
|
<strong>SCROBBLE_MODE_LOVED</strong> = 'L'<br>
|
|
<strong>SCROBBLE_MODE_PLAYED</strong> = ''<br>
|
|
<strong>SCROBBLE_MODE_SKIPPED</strong> = 'S'<br>
|
|
<strong>SCROBBLE_SOURCE_LASTFM</strong> = 'L'<br>
|
|
<strong>SCROBBLE_SOURCE_NON_PERSONALIZED_BROADCAST</strong> = 'R'<br>
|
|
<strong>SCROBBLE_SOURCE_PERSONALIZED_BROADCAST</strong> = 'E'<br>
|
|
<strong>SCROBBLE_SOURCE_UNKNOWN</strong> = 'U'<br>
|
|
<strong>SCROBBLE_SOURCE_USER</strong> = 'P'<br>
|
|
<strong>STATUS_AUTH_FAILED</strong> = 4<br>
|
|
<strong>STATUS_INVALID_API_KEY</strong> = 10<br>
|
|
<strong>STATUS_INVALID_FORMAT</strong> = 5<br>
|
|
<strong>STATUS_INVALID_METHOD</strong> = 3<br>
|
|
<strong>STATUS_INVALID_PARAMS</strong> = 6<br>
|
|
<strong>STATUS_INVALID_RESOURCE</strong> = 7<br>
|
|
<strong>STATUS_INVALID_SERVICE</strong> = 2<br>
|
|
<strong>STATUS_INVALID_SIGNATURE</strong> = 13<br>
|
|
<strong>STATUS_INVALID_SK</strong> = 9<br>
|
|
<strong>STATUS_OFFLINE</strong> = 11<br>
|
|
<strong>STATUS_SUBSCRIBERS_ONLY</strong> = 12<br>
|
|
<strong>STATUS_TOKEN_ERROR</strong> = 8<br>
|
|
<strong>STATUS_TOKEN_EXPIRED</strong> = 15<br>
|
|
<strong>STATUS_TOKEN_UNAUTHORIZED</strong> = 14<br>
|
|
<strong>USER_FEMALE</strong> = 'Female'<br>
|
|
<strong>USER_MALE</strong> = 'Male'<br>
|
|
<strong>__author__</strong> = 'Amr Hassan'<br>
|
|
<strong>__copyright__</strong> = 'Copyright (C) 2008-2010 Amr Hassan'<br>
|
|
<strong>__email__</strong> = 'amr.hassan@gmail.com'<br>
|
|
<strong>__license__</strong> = 'apache2'<br>
|
|
<strong>__version__</strong> = '0.5'</td></tr></table><p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#7799ee">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
|
<td width="100%">Amr Hassan</td></tr></table>
|
|
</body></html> |