This module contains higher level classes to query Musixmatch API and build simple dictionary-like objects representing an Artist or an ArtistsCollection.
>>> from musixmatch.artist import Artist, ArtistsCollection
>>> import musixmatch.api
>>>
>>> try:
... artist = Artist(artist_id=292)
... collection = ArtistsCollection.fromChart(country='it', page=1)
... except musixmatch.api.Error, e:
... pass
Bases: musixmatch.base.Item
This class build a dict like object representing an artist. It can get artist information through the musixmatch.api.Method artist.get or from an already well-formed dict. Create an Artist 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 artists collection. It accepts dict or Artist objects.
This classmethod builds an ArtistsCollection from a artist.search musixmatch.api.Method call.
Parameters: |
|
---|---|
Return type: |
This classmethod builds an ArtistsCollection from a artist.chart.get musixmatch.api.Method call.
Parameters: |
|
---|---|
Return type: |