class paginate_obj:
    """ Pagination dummy object. Takes a list and paginates it similar to sqlalchemy paginate() """

def __init__(self, paginatable, page, per_page):
    pass
Ordering and pagination in SQL-alchemy using non-sql ranking