def __init__(self, items, total, per_page, current_page=None, options=None):
        if options is not None:
            for key, value in options.items():
                setattr(self, key, value)

        self.total = total
        self.per_page = per_page
        self.last_page = int(math.ceil(total / per_page))
        self.current_page = self._set_current_page(current_page, self.last_page)
        if isinstance(items, Collection):
            self._items = items
        else:
            self._items = Collection.make(items)
Constructor
dataset/ETHPy150Open sdispater/orator/orator/pagination/length_aware_paginator.py/LengthAwarePaginator.__init__