musixmatch.base.Item Class Reference
Inheritance diagram for musixmatch.base.Item:
Inheritance graph
Collaboration diagram for musixmatch.base.Item:
Collaboration graph

Public Member Functions

def __init__ (self, dictionary=None, keywords)
 
def __str__ (self)
 
def __repr__ (self)
 
def __hash__ (self)
 
def fromResponseMessage (cls, message)
 
def fromDictionary (cls, dictionary, keywords)
 
def __init__ (self, dictionary=None, keywords)
 
def __str__ (self)
 
def __repr__ (self)
 
def __hash__ (self)
 
def fromResponseMessage (cls, message)
 
def fromDictionary (cls, dictionary, keywords)
 
def __init__ (self, dictionary=None, keywords)
 
def __str__ (self)
 
def __repr__ (self)
 
def __hash__ (self)
 
def fromResponseMessage (cls, message)
 
def fromDictionary (cls, dictionary, keywords)
 
def __init__ (self, dictionary=None, keywords)
 
def __str__ (self)
 
def __repr__ (self)
 
def __hash__ (self)
 
def fromResponseMessage (cls, message)
 
def fromDictionary (cls, dictionary, keywords)
 
- Public Member Functions inherited from musixmatch.base.Base
def label (cls)
 
def apiMethod (cls)
 
def __str__ (self)
 
def __repr__ (self)
 
def label (cls)
 
def apiMethod (cls)
 
def __str__ (self)
 
def __repr__ (self)
 
def label (cls)
 
def apiMethod (cls)
 
def __str__ (self)
 
def __repr__ (self)
 
def label (cls)
 
def apiMethod (cls)
 
def __str__ (self)
 
def __repr__ (self)
 

Static Private Attributes

 __api_method__ = None
 

Detailed Description

This is the base class for any entity in musixmatch package. Even if
response messages may have XML format, the JSON representation will be the
main data format, so the :py:class:`dict` sounds like the best base class.
It fetches the item data by guessing the :py:class:`musixmatch.api.Method`
and building the query based on a given keyword argument. Positional
argument is meant to be used by collection classes. Use only keyword
arguments.

Definition at line 57 of file musixmatch-master/build/lib/musixmatch/base.py.

Constructor & Destructor Documentation

def musixmatch.base.Item.__init__ (   self,
  dictionary = None,
  keywords 
)
def musixmatch.base.Item.__init__ (   self,
  dictionary = None,
  keywords 
)

Definition at line 69 of file musixmatch-master/musixmatch/base.py.

def musixmatch.base.Item.__init__ (   self,
  dictionary = None,
  keywords 
)
def musixmatch.base.Item.__init__ (   self,
  dictionary = None,
  keywords 
)

Definition at line 69 of file Yading/musixmatch-master/musixmatch/base.py.

Member Function Documentation

def musixmatch.base.Item.__hash__ (   self)
def musixmatch.base.Item.__hash__ (   self)

Definition at line 82 of file musixmatch-master/musixmatch/base.py.

def musixmatch.base.Item.__hash__ (   self)

Definition at line 82 of file Yading/musixmatch-master/musixmatch/base.py.

def musixmatch.base.Item.__hash__ (   self)
def musixmatch.base.Item.__repr__ (   self)

Definition at line 79 of file Yading/musixmatch-master/musixmatch/base.py.

def musixmatch.base.Item.__repr__ (   self)
def musixmatch.base.Item.__repr__ (   self)
def musixmatch.base.Item.__repr__ (   self)

Definition at line 79 of file musixmatch-master/musixmatch/base.py.

def musixmatch.base.Item.__str__ (   self)
def musixmatch.base.Item.__str__ (   self)

Definition at line 76 of file Yading/musixmatch-master/musixmatch/base.py.

def musixmatch.base.Item.__str__ (   self)
def musixmatch.base.Item.__str__ (   self)

Definition at line 76 of file musixmatch-master/musixmatch/base.py.

def musixmatch.base.Item.fromDictionary (   cls,
  dictionary,
  keywords 
)
Returns an object instance, built from a :py:class:`dict`

Definition at line 96 of file musixmatch-master/build/lib/musixmatch/base.py.

Referenced by musixmatch.base.Item.fromDictionary(), and musixmatch.base.Item.fromResponseMessage().

def musixmatch.base.Item.fromDictionary (   cls,
  dictionary,
  keywords 
)
Returns an object instance, built from a :py:class:`dict`

Definition at line 96 of file Yading/musixmatch-master/musixmatch/base.py.

def musixmatch.base.Item.fromDictionary (   cls,
  dictionary,
  keywords 
)
Returns an object instance, built from a :py:class:`dict`

Definition at line 96 of file musixmatch-master/musixmatch/base.py.

def musixmatch.base.Item.fromDictionary (   cls,
  dictionary,
  keywords 
)
Returns an object instance, built from a :py:class:`dict`

Definition at line 96 of file Yading/musixmatch-master/build/lib/musixmatch/base.py.

def musixmatch.base.Item.fromResponseMessage (   cls,
  message 
)
Returns an object instance, built from a
:py:class:`musixmatch.api.ResponseMessage`

Definition at line 86 of file Yading/musixmatch-master/musixmatch/base.py.

def musixmatch.base.Item.fromResponseMessage (   cls,
  message 
)
Returns an object instance, built from a
:py:class:`musixmatch.api.ResponseMessage`

Definition at line 86 of file musixmatch-master/musixmatch/base.py.

def musixmatch.base.Item.fromResponseMessage (   cls,
  message 
)
Returns an object instance, built from a
:py:class:`musixmatch.api.ResponseMessage`

Definition at line 86 of file Yading/musixmatch-master/build/lib/musixmatch/base.py.

Field Documentation

musixmatch.base.Item.__api_method__ = None
staticprivate

The documentation for this class was generated from the following file: