2 This is an utility module that provides a row musiXmatch web API interface. 3 Ideally it should be used like this: 8 ... chart = musixmatch.ws.track.chart.get(country='it', f_has_lyrics=1) 9 ... except musixmatch.api.Error, e: 12 from warnings
import warn
15 __license__ = musixmatch.__license__
16 __author__ = musixmatch.__author__
18 _version = os.environ.get(
'musixmatch_apiversion',
None)
22 warn(
"Use of `musixmatch_apiversion' was deprecated in favour of `musixmatch_wslocation'", DeprecationWarning)
24 location = os.environ.get(
'musixmatch_wslocation',
'http://api.musixmatch.com/ws/%s' % _version)