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

Public Member Functions

def __init__ (self, items)
 
def __repr__ (self)
 
def __str__ (self)
 
def __add__ (self, iterable)
 
def __iadd__ (self, iterable)
 
def __mul__ (self, by)
 
def __imul__ (self, by)
 
def __setitem__ (self, key, item)
 
def __setslice__ (self, indices)
 
def __getslice__ (self, i=0, j=-1)
 
def __getitem__ (self, i)
 
def append (self, item)
 
def extend (self, iterable)
 
def count (self, item)
 
def copy (self)
 
def index (self, item, indices)
 
def insert (self, key, item)
 
def paged (self, page_size=3)
 
def page (self, page_index, page_size=3)
 
def pager (self, page_size=3)
 
def pages (self, page_size=3)
 
def fromResponseMessage (cls, message)
 
def allowedin (cls)
 
def label (cls)
 
def __init__ (self, items)
 
def __repr__ (self)
 
def __str__ (self)
 
def __add__ (self, iterable)
 
def __iadd__ (self, iterable)
 
def __mul__ (self, by)
 
def __imul__ (self, by)
 
def __setitem__ (self, key, item)
 
def __setslice__ (self, indices)
 
def __getslice__ (self, i=0, j=-1)
 
def __getitem__ (self, i)
 
def append (self, item)
 
def extend (self, iterable)
 
def count (self, item)
 
def copy (self)
 
def index (self, item, indices)
 
def insert (self, key, item)
 
def paged (self, page_size=3)
 
def page (self, page_index, page_size=3)
 
def pager (self, page_size=3)
 
def pages (self, page_size=3)
 
def fromResponseMessage (cls, message)
 
def allowedin (cls)
 
def label (cls)
 
def __init__ (self, items)
 
def __repr__ (self)
 
def __str__ (self)
 
def __add__ (self, iterable)
 
def __iadd__ (self, iterable)
 
def __mul__ (self, by)
 
def __imul__ (self, by)
 
def __setitem__ (self, key, item)
 
def __setslice__ (self, indices)
 
def __getslice__ (self, i=0, j=-1)
 
def __getitem__ (self, i)
 
def append (self, item)
 
def extend (self, iterable)
 
def count (self, item)
 
def copy (self)
 
def index (self, item, indices)
 
def insert (self, key, item)
 
def paged (self, page_size=3)
 
def page (self, page_index, page_size=3)
 
def pager (self, page_size=3)
 
def pages (self, page_size=3)
 
def fromResponseMessage (cls, message)
 
def allowedin (cls)
 
def label (cls)
 
def __init__ (self, items)
 
def __repr__ (self)
 
def __str__ (self)
 
def __add__ (self, iterable)
 
def __iadd__ (self, iterable)
 
def __mul__ (self, by)
 
def __imul__ (self, by)
 
def __setitem__ (self, key, item)
 
def __setslice__ (self, indices)
 
def __getslice__ (self, i=0, j=-1)
 
def __getitem__ (self, i)
 
def append (self, item)
 
def extend (self, iterable)
 
def count (self, item)
 
def copy (self)
 
def index (self, item, indices)
 
def insert (self, key, item)
 
def paged (self, page_size=3)
 
def page (self, page_index, page_size=3)
 
def pager (self, page_size=3)
 
def pages (self, page_size=3)
 
def fromResponseMessage (cls, message)
 
def allowedin (cls)
 
def label (cls)
 
- 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

 __allowedin__ = Item
 

Detailed Description

This is the base class for collections of items, like search results, or
charts. It behaves like :py:class:`list`, but enforce new items to be
instance of appropriate class checking against :py:meth:`allowedin`.

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

Constructor & Destructor Documentation

def musixmatch.base.ItemsCollection.__init__ (   self,
  items 
)
def musixmatch.base.ItemsCollection.__init__ (   self,
  items 
)

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

def musixmatch.base.ItemsCollection.__init__ (   self,
  items 
)
def musixmatch.base.ItemsCollection.__init__ (   self,
  items 
)

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

Member Function Documentation

def musixmatch.base.ItemsCollection.__add__ (   self,
  iterable 
)
def musixmatch.base.ItemsCollection.__add__ (   self,
  iterable 
)

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

def musixmatch.base.ItemsCollection.__add__ (   self,
  iterable 
)

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

def musixmatch.base.ItemsCollection.__add__ (   self,
  iterable 
)
def musixmatch.base.ItemsCollection.__getitem__ (   self,
  i 
)
def musixmatch.base.ItemsCollection.__getitem__ (   self,
  i 
)

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

def musixmatch.base.ItemsCollection.__getitem__ (   self,
  i 
)

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

def musixmatch.base.ItemsCollection.__getitem__ (   self,
  i 
)
def musixmatch.base.ItemsCollection.__getslice__ (   self,
  i = 0,
  j = -1 
)

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

def musixmatch.base.ItemsCollection.__getslice__ (   self,
  i = 0,
  j = -1 
)

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

def musixmatch.base.ItemsCollection.__getslice__ (   self,
  i = 0,
  j = -1 
)
def musixmatch.base.ItemsCollection.__getslice__ (   self,
  i = 0,
  j = -1 
)
def musixmatch.base.ItemsCollection.__iadd__ (   self,
  iterable 
)
def musixmatch.base.ItemsCollection.__iadd__ (   self,
  iterable 
)

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

def musixmatch.base.ItemsCollection.__iadd__ (   self,
  iterable 
)

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

def musixmatch.base.ItemsCollection.__iadd__ (   self,
  iterable 
)
def musixmatch.base.ItemsCollection.__imul__ (   self,
  by 
)

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

def musixmatch.base.ItemsCollection.__imul__ (   self,
  by 
)
def musixmatch.base.ItemsCollection.__imul__ (   self,
  by 
)
def musixmatch.base.ItemsCollection.__imul__ (   self,
  by 
)

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

def musixmatch.base.ItemsCollection.__mul__ (   self,
  by 
)

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

def musixmatch.base.ItemsCollection.__mul__ (   self,
  by 
)
def musixmatch.base.ItemsCollection.__mul__ (   self,
  by 
)
def musixmatch.base.ItemsCollection.__mul__ (   self,
  by 
)

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

def musixmatch.base.ItemsCollection.__repr__ (   self)

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

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

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

def musixmatch.base.ItemsCollection.__repr__ (   self)
def musixmatch.base.ItemsCollection.__setitem__ (   self,
  key,
  item 
)

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

def musixmatch.base.ItemsCollection.__setitem__ (   self,
  key,
  item 
)
def musixmatch.base.ItemsCollection.__setitem__ (   self,
  key,
  item 
)
def musixmatch.base.ItemsCollection.__setitem__ (   self,
  key,
  item 
)

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

def musixmatch.base.ItemsCollection.__setslice__ (   self,
  indices 
)
def musixmatch.base.ItemsCollection.__setslice__ (   self,
  indices 
)

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

def musixmatch.base.ItemsCollection.__setslice__ (   self,
  indices 
)
def musixmatch.base.ItemsCollection.__setslice__ (   self,
  indices 
)

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

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

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

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

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

def musixmatch.base.ItemsCollection.allowedin (   cls)
Returns the allowed content class. Defaults to :py:class:`Item`

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

def musixmatch.base.ItemsCollection.allowedin (   cls)
Returns the allowed content class. Defaults to :py:class:`Item`

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

def musixmatch.base.ItemsCollection.allowedin (   cls)
Returns the allowed content class. Defaults to :py:class:`Item`

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

def musixmatch.base.ItemsCollection.allowedin (   cls)
def musixmatch.base.ItemsCollection.append (   self,
  item 
)

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

def musixmatch.base.ItemsCollection.append (   self,
  item 
)

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

def musixmatch.base.ItemsCollection.append (   self,
  item 
)
def musixmatch.base.ItemsCollection.append (   self,
  item 
)
def musixmatch.base.ItemsCollection.copy (   self)
Returns a shallow copy of the collection.

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

Referenced by musixmatch.api.QueryString.__repr__().

def musixmatch.base.ItemsCollection.copy (   self)
Returns a shallow copy of the collection.

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

Referenced by musixmatch.api.QueryString.__repr__().

def musixmatch.base.ItemsCollection.copy (   self)
def musixmatch.base.ItemsCollection.copy (   self)
Returns a shallow copy of the collection.

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

Referenced by musixmatch.api.QueryString.__repr__().

def musixmatch.base.ItemsCollection.count (   self,
  item 
)

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

def musixmatch.base.ItemsCollection.count (   self,
  item 
)

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

def musixmatch.base.ItemsCollection.count (   self,
  item 
)
def musixmatch.base.ItemsCollection.count (   self,
  item 
)
def musixmatch.base.ItemsCollection.extend (   self,
  iterable 
)

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

def musixmatch.base.ItemsCollection.extend (   self,
  iterable 
)
def musixmatch.base.ItemsCollection.extend (   self,
  iterable 
)
def musixmatch.base.ItemsCollection.extend (   self,
  iterable 
)

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

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

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

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

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

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

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

def musixmatch.base.ItemsCollection.index (   self,
  item,
  indices 
)
def musixmatch.base.ItemsCollection.index (   self,
  item,
  indices 
)

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

def musixmatch.base.ItemsCollection.index (   self,
  item,
  indices 
)

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

def musixmatch.base.ItemsCollection.index (   self,
  item,
  indices 
)
def musixmatch.base.ItemsCollection.insert (   self,
  key,
  item 
)

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

def musixmatch.base.ItemsCollection.insert (   self,
  key,
  item 
)
def musixmatch.base.ItemsCollection.insert (   self,
  key,
  item 
)

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

def musixmatch.base.ItemsCollection.insert (   self,
  key,
  item 
)
def musixmatch.base.ItemsCollection.label (   cls)
def musixmatch.base.ItemsCollection.label (   cls)

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

def musixmatch.base.ItemsCollection.label (   cls)

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

def musixmatch.base.ItemsCollection.label (   cls)
def musixmatch.base.ItemsCollection.page (   self,
  page_index,
  page_size = 3 
)
Returns a specific page, considering pages that contain "at most"
**page_size** items.

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

def musixmatch.base.ItemsCollection.page (   self,
  page_index,
  page_size = 3 
)
Returns a specific page, considering pages that contain "at most"
**page_size** items.

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

Referenced by musixmatch.base.ItemsCollection.page(), musixmatch.base.ItemsCollection.paged(), and musixmatch.base.ItemsCollection.pager().

def musixmatch.base.ItemsCollection.page (   self,
  page_index,
  page_size = 3 
)
Returns a specific page, considering pages that contain "at most"
**page_size** items.

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

def musixmatch.base.ItemsCollection.page (   self,
  page_index,
  page_size = 3 
)
Returns a specific page, considering pages that contain "at most"
**page_size** items.

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

def musixmatch.base.ItemsCollection.paged (   self,
  page_size = 3 
)
Returns self, paged by **page_size**. That is, a list of
sub-collections which contain "at most" **page_size** items.

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

def musixmatch.base.ItemsCollection.paged (   self,
  page_size = 3 
)
Returns self, paged by **page_size**. That is, a list of
sub-collections which contain "at most" **page_size** items.

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

Referenced by musixmatch.base.ItemsCollection.paged().

def musixmatch.base.ItemsCollection.paged (   self,
  page_size = 3 
)
Returns self, paged by **page_size**. That is, a list of
sub-collections which contain "at most" **page_size** items.

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

def musixmatch.base.ItemsCollection.paged (   self,
  page_size = 3 
)
Returns self, paged by **page_size**. That is, a list of
sub-collections which contain "at most" **page_size** items.

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

def musixmatch.base.ItemsCollection.pager (   self,
  page_size = 3 
)
A generator of pages, considering pages that contain "at most"
**page_size** items.

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

def musixmatch.base.ItemsCollection.pager (   self,
  page_size = 3 
)
A generator of pages, considering pages that contain "at most"
**page_size** items.

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

def musixmatch.base.ItemsCollection.pager (   self,
  page_size = 3 
)
A generator of pages, considering pages that contain "at most"
**page_size** items.

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

Referenced by musixmatch.base.ItemsCollection.pager().

def musixmatch.base.ItemsCollection.pager (   self,
  page_size = 3 
)
A generator of pages, considering pages that contain "at most"
**page_size** items.

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

def musixmatch.base.ItemsCollection.pages (   self,
  page_size = 3 
)
Returns the number of pages, considering pages that contain "at most"
**page_size** items.

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

def musixmatch.base.ItemsCollection.pages (   self,
  page_size = 3 
)
Returns the number of pages, considering pages that contain "at most"
**page_size** items.

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

def musixmatch.base.ItemsCollection.pages (   self,
  page_size = 3 
)
Returns the number of pages, considering pages that contain "at most"
**page_size** items.

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

def musixmatch.base.ItemsCollection.pages (   self,
  page_size = 3 
)
Returns the number of pages, considering pages that contain "at most"
**page_size** items.

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

Referenced by musixmatch.base.ItemsCollection.paged(), musixmatch.base.ItemsCollection.pager(), and musixmatch.base.ItemsCollection.pages().

Field Documentation

musixmatch.base.ItemsCollection.__allowedin__ = Item
staticprivate

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