Module ImportFrom alias Import alias Import alias Import alias ImportFrom alias alias alias alias Assign NameStore ListLoad Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Expr Str Assign NameStore NameLoad Expr Str Assign NameStore NameLoad Expr Str Assign NameStore NameLoad Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Assert BoolOpOr BoolOpAnd CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return UnaryOpNot Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Return ListLoad FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list NameLoad Return Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad decorator_list NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Return ListLoad FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list NameLoad Return Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad decorator_list NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Return ListLoad FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list NameLoad Return Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad decorator_list NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Return Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot NameLoad NameLoad body Expr Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str NameLoad ClassDef bases AttributeLoad NameLoad attr body Pass decorator_list Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Pass decorator_list Call AttributeLoad NameLoad attr Str
N/A __future__ unicode_literals N/A logging N/A threading N/A spotify spotify ffi lib serialized utils N/A __all__ N/A Toplist ToplistRegion ToplistType N/A logger N/A N/A logging getLogger __name__ Toplist N/A object N/A N/A A Spotify toplist of artists, albums or tracks that are currently most
    popular worldwide or in a specific region.

    Call the :meth:`~Session.get_toplist` method on your :class:`Session`
    instance to get a :class:`Toplist` back.
     N/A type None N/A A :class:`ToplistType` instance that specifies what kind of toplist this
    is: top artists, top albums, or top tracks.

    Changing this field has no effect on existing toplists.
     N/A region None N/A Either a :class:`ToplistRegion` instance, or a 2-letter ISO 3166-1
    country code, that specifies the geographical region this toplist is for.

    Changing this field has no effect on existing toplists.
     N/A canonical_username None N/A If :attr:`region` is :attr:`ToplistRegion.USER`, then this field
    specifies which user the toplist is for.

    Changing this field has no effect on existing toplists.
     N/A loaded_event None N/A :class:`threading.Event` that is set when the toplist is loaded. __init__ N/A N/A self session type region canonical_username callback sp_toplistbrowse add_ref N/A None None None None None True N/A N/A N/A N/A N/A type None N/A region None sp_toplistbrowse type and region, or sp_toplistbrowse, is required N/A N/A self _session session N/A N/A self type type N/A N/A self region region N/A N/A self canonical_username canonical_username N/A N/A self loaded_event N/A N/A threading Event N/A N/A sp_toplistbrowse None N/A N/A N/A isinstance region ToplistRegion N/A N/A region N/A int region N/A N/A region N/A N/A utils to_country_code region N/A handle N/A N/A ffi new_handle N/A N/A self _session self callback N/A N/A N/A N/A N/A self _session _callback_handles add handle N/A sp_toplistbrowse N/A N/A lib sp_toplistbrowse_create N/A N/A self _session _sp_session N/A int type region N/A N/A utils to_char_or_null canonical_username _toplistbrowse_complete_callback handle N/A add_ref False N/A add_ref N/A N/A N/A N/A lib sp_toplistbrowse_add_ref sp_toplistbrowse N/A N/A self _sp_toplistbrowse N/A N/A ffi gc sp_toplistbrowse N/A lib sp_toplistbrowse_release N/A __repr__ N/A N/A self N/A N/A N/A N/A Toplist(type=%r, region=%r, canonical_username=%r) N/A N/A self type N/A self region N/A self canonical_username N/A __eq__ N/A N/A self other N/A N/A N/A N/A isinstance other N/A self __class__ N/A N/A N/A N/A self _sp_toplistbrowse N/A other _sp_toplistbrowse N/A N/A False N/A __ne__ N/A N/A self other N/A N/A N/A N/A N/A N/A self __eq__ other N/A __hash__ N/A N/A self N/A N/A N/A N/A hash N/A self _sp_toplistbrowse N/A is_loaded N/A N/A self N/A N/A N/A Whether the toplist's data is loaded yet. N/A N/A bool N/A N/A lib sp_toplistbrowse_is_loaded N/A self _sp_toplistbrowse N/A property load N/A N/A self timeout N/A None N/A N/A Block until the user's data is loaded.

        After ``timeout`` seconds with no results :exc:`~spotify.Timeout` is
        raised. If ``timeout`` is :class:`None` the default timeout is used.

        The method returns ``self`` to allow for chaining of calls.
         N/A N/A N/A utils load N/A self _session self timeout timeout N/A error N/A N/A self N/A N/A N/A An :class:`ErrorType` associated with the toplist.

        Check to see if there was problems creating the toplist.
         N/A N/A N/A spotify ErrorType N/A N/A lib sp_toplistbrowse_error N/A self _sp_toplistbrowse N/A property backend_request_duration N/A N/A self N/A N/A N/A The time in ms that was spent waiting for the Spotify backend to
        create the toplist.

        Returns ``-1`` if the request was served from local cache. Returns
        :class:`None` if the toplist isn't loaded yet.
         N/A N/A N/A self is_loaded N/A N/A None N/A N/A N/A lib sp_toplistbrowse_backend_request_duration N/A self _sp_toplistbrowse N/A property tracks N/A N/A self N/A N/A N/A The tracks in the toplist.

        Will always return an empty list if the toplist isn't loaded.
         N/A N/A N/A N/A spotify Error maybe_raise N/A self error N/A N/A N/A self is_loaded N/A N/A N/A get_track N/A N/A sp_toplistbrowse key N/A N/A N/A N/A N/A spotify Track N/A self _session sp_track N/A N/A lib sp_toplistbrowse_track sp_toplistbrowse key add_ref True N/A serialized N/A N/A N/A utils Sequence sp_obj N/A self _sp_toplistbrowse add_ref_func N/A lib sp_toplistbrowse_add_ref release_func N/A lib sp_toplistbrowse_release len_func N/A lib sp_toplistbrowse_num_tracks getitem_func get_track N/A property serialized albums N/A N/A self N/A N/A N/A The albums in the toplist.

        Will always return an empty list if the toplist isn't loaded.
         N/A N/A N/A N/A spotify Error maybe_raise N/A self error N/A N/A N/A self is_loaded N/A N/A N/A get_album N/A N/A sp_toplistbrowse key N/A N/A N/A N/A N/A spotify Album N/A self _session sp_album N/A N/A lib sp_toplistbrowse_album sp_toplistbrowse key add_ref True N/A serialized N/A N/A N/A utils Sequence sp_obj N/A self _sp_toplistbrowse add_ref_func N/A lib sp_toplistbrowse_add_ref release_func N/A lib sp_toplistbrowse_release len_func N/A lib sp_toplistbrowse_num_albums getitem_func get_album N/A property serialized artists N/A N/A self N/A N/A N/A The artists in the toplist.

        Will always return an empty list if the toplist isn't loaded.
         N/A N/A N/A N/A spotify Error maybe_raise N/A self error N/A N/A N/A self is_loaded N/A N/A N/A get_artist N/A N/A sp_toplistbrowse key N/A N/A N/A N/A N/A spotify Artist N/A self _session sp_artist N/A N/A lib sp_toplistbrowse_artist sp_toplistbrowse key add_ref True N/A serialized N/A N/A N/A utils Sequence sp_obj N/A self _sp_toplistbrowse add_ref_func N/A lib sp_toplistbrowse_add_ref release_func N/A lib sp_toplistbrowse_release len_func N/A lib sp_toplistbrowse_num_artists getitem_func get_artist N/A property serialized N/A _toplistbrowse_complete_callback N/A N/A sp_toplistbrowse handle N/A N/A N/A N/A N/A logger debug toplistbrowse_complete_callback called N/A N/A handle N/A ffi NULL N/A N/A N/A N/A logger warning pyspotify toplistbrowse_complete_callback called without userdata N/A N/A N/A session toplist callback N/A N/A ffi from_handle handle N/A N/A N/A N/A session _callback_handles remove handle N/A N/A N/A N/A toplist loaded_event set N/A N/A callback None N/A N/A N/A callback toplist N/A N/A N/A ffi callback void(sp_toplistbrowse *, void *) serialized ToplistRegion N/A N/A utils IntEnum N/A N/A N/A N/A N/A utils make_enum SP_TOPLIST_REGION_ ToplistType N/A N/A utils IntEnum N/A N/A N/A N/A N/A utils make_enum SP_TOPLIST_TYPE_