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

Public Member Functions

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)
 

Detailed Description

The very base (abstract) class of the musixmatch package. I want all
classes to implement :py:meth:`__str__` and :py:meth:`__repr__`.

Casting an :py:class:`Base` into a :py:class:`str` returns a pretty printed
(maybe using :py:mod:`pprint`) string representing the object.

Using :py:func:`repr` on an :py:class:`Base` returns an evaluable string
representing the instance, whenever it is reasonable.

:py:class:`Base` instances are hashable.

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

Member Function Documentation

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

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

def musixmatch.base.Base.__repr__ (   self)

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

def musixmatch.base.Base.__repr__ (   self)
def musixmatch.base.Base.__str__ (   self)
def musixmatch.base.Base.__str__ (   self)
def musixmatch.base.Base.__str__ (   self)

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

def musixmatch.base.Base.__str__ (   self)

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

def musixmatch.base.Base.apiMethod (   cls)
Returns the :py:class:`musixmatch.api.Method` that should be used to
build the object. Defaults to *label.get* where *label* is the result
from :py:meth:`label`

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

def musixmatch.base.Base.apiMethod (   cls)
Returns the :py:class:`musixmatch.api.Method` that should be used to
build the object. Defaults to *label.get* where *label* is the result
from :py:meth:`label`

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

Referenced by musixmatch.base.Item.__init__(), and musixmatch.base.Base.apiMethod().

def musixmatch.base.Base.apiMethod (   cls)
Returns the :py:class:`musixmatch.api.Method` that should be used to
build the object. Defaults to *label.get* where *label* is the result
from :py:meth:`label`

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

def musixmatch.base.Base.apiMethod (   cls)
Returns the :py:class:`musixmatch.api.Method` that should be used to
build the object. Defaults to *label.get* where *label* is the result
from :py:meth:`label`

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

def musixmatch.base.Base.label (   cls)
Returns the label that should be used as keyword in the
:py:class:`musixmatch.api.JsonResponseMessage` body.

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

Referenced by musixmatch.base.Item.__hash__(), musixmatch.base.Base.apiMethod(), musixmatch.base.Item.fromResponseMessage(), musixmatch.base.ItemsCollection.fromResponseMessage(), and musixmatch.base.Base.label().

def musixmatch.base.Base.label (   cls)
Returns the label that should be used as keyword in the
:py:class:`musixmatch.api.JsonResponseMessage` body.

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

def musixmatch.base.Base.label (   cls)
Returns the label that should be used as keyword in the
:py:class:`musixmatch.api.JsonResponseMessage` body.

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

def musixmatch.base.Base.label (   cls)
Returns the label that should be used as keyword in the
:py:class:`musixmatch.api.JsonResponseMessage` body.

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


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