Simple Django Paginator
Project description
Simple Django Paginator
Installation
pip install django-paginator2
Usage
In [1]: from paginator import pagination In [2]: pagination(range(100), 1) Out[2]: ([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], 1) In [3]: pagination(range(100), 1, strict=True) Out[3]: ([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], 90) In [4]: pagination(range(100), 1, 20, strict=True) Out[4]: ([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], 80)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_paginator2-1.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfb2fdbb3493b245c9c4e91c65564371095354e9ded4fd31c3e39f103fdecc95 |
|
MD5 | 63a7736741a0e8558de2d88a31cbad7a |
|
BLAKE2b-256 | 4dbcbd1b876e6ce1546070490f3d5461fafcf777ed565abc186e296849ff20bf |