musixmatch.ws Namespace Reference

Variables

 __license__ = musixmatch.__license__
 
 __author__ = musixmatch.__author__
 
 _version = os.environ.get('musixmatch_apiversion', None)
 
 location = os.environ.get('musixmatch_wslocation', 'http://api.musixmatch.com/ws/%s' % _version)
 
 artist = musixmatch.api.Method('artist')
 
 album = musixmatch.api.Method('album')
 
 track = musixmatch.api.Method('track')
 
 tracking = musixmatch.api.Method('tracking')
 
 matcher = musixmatch.api.Method('matcher')
 

Detailed Description

This is an utility module that provides a row musiXmatch web API interface.
Ideally it should be used like this:

>>> import musixmatch
>>> 
>>> try:
...     chart = musixmatch.ws.track.chart.get(country='it', f_has_lyrics=1)
... except musixmatch.api.Error, e:
...     pass

Variable Documentation

musixmatch.ws.__author__ = musixmatch.__author__
private

Definition at line 16 of file musixmatch-master/build/lib/musixmatch/ws.py.

musixmatch.ws.__license__ = musixmatch.__license__
private

Definition at line 15 of file musixmatch-master/build/lib/musixmatch/ws.py.

string musixmatch.ws._version = os.environ.get('musixmatch_apiversion', None)
private

Definition at line 18 of file musixmatch-master/build/lib/musixmatch/ws.py.

musixmatch.ws.album = musixmatch.api.Method('album')

Definition at line 27 of file musixmatch-master/build/lib/musixmatch/ws.py.

musixmatch.ws.artist = musixmatch.api.Method('artist')

Definition at line 26 of file musixmatch-master/build/lib/musixmatch/ws.py.

musixmatch.ws.location = os.environ.get('musixmatch_wslocation', 'http://api.musixmatch.com/ws/%s' % _version)

Definition at line 24 of file musixmatch-master/build/lib/musixmatch/ws.py.

musixmatch.ws.matcher = musixmatch.api.Method('matcher')

Definition at line 30 of file musixmatch-master/build/lib/musixmatch/ws.py.

musixmatch.ws.track = musixmatch.api.Method('track')

Definition at line 28 of file musixmatch-master/build/lib/musixmatch/ws.py.

musixmatch.ws.tracking = musixmatch.api.Method('tracking')

Definition at line 29 of file musixmatch-master/build/lib/musixmatch/ws.py.