def get_page_number(obj_number, per_page):
    if obj_number < per_page:
        return 1
    elif obj_number % per_page:
        return obj_number // per_page + 1
    else:
        return obj_number // per_page
dataset/ETHPy150Open nitely/Spirit/spirit/core/utils/paginator/__init__.py/get_page_number/original