This module contains higher level classes to query Musixmatch API and build simple dictionary-like objects representing an Album or an AlbumsCollection.
>>> from musixmatch.album import Album, AlbumsCollection
>>> import musixmatch.api
>>>
>>> try:
... album = Album(album_id=292)
... collection = AlbumsCollection.fromArtist(country='it', page=1)
... except musixmatch.api.Error, e:
... pass
Bases: musixmatch.base.Item
This class build a dict like object representing an album. It can get album information through the musixmatch.api.Method album.get or from an already well-formed dict. Create an Album object based on a given keyword argument:
Parameters: |
|
---|
Once information are collected, the following keys are available:
Parameters: |
|
---|
Bases: musixmatch.base.ItemsCollection
This class build a list like object representing an albums collection. It accepts dict or Album objects.
This classmethod builds an AlbumsCollection from a artist.albums.get musixmatch.api.Method call.
Parameters: |
|
---|---|
Return type: |