FFmpeg
|
musixmatch.api.Method Class Reference
Inheritance diagram for musixmatch.api.Method:

Collaboration diagram for musixmatch.api.Method:

Static Private Attributes | |
string | __separator__ = '.' |
Detailed Description
Utility class to build API methods name and call them as functions. :py:class:`Method` has custom attribute access to build method names like those specified in the API. Each attribute access builds a new Method with a new name. Calling a :py:class:`Method` as a function with keyword arguments, builds a :py:class:`Request`, runs it and returns the result. If **apikey** is undefined, environment variable **musixmatch_apikey** will be used. If **format** is undefined, environment variable **musixmatch_format** will be used. If **musixmatch_format** is undefined, jason format will be used. >>> import musixmatch >>> artist = musixmatch.api.Method('artist') >>> >>> try: ... chart = artist.chart.get(country='it', page=1, page_size=3) ... except musixmatch.api.Error, e: ... pass
Definition at line 255 of file musixmatch-master/build/lib/musixmatch/api.py.
The documentation for this class was generated from the following file:
Generated on Sat Jun 21 2025 06:53:40 for FFmpeg by
