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
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:
Once information are collected, the following keys are available:
This class build a list like object representing an albums collection. It accepts dict or Album objects.