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
File details
Details for the file django-paginator2-1.0.4.tar.gz
.
File metadata
- Download URL: django-paginator2-1.0.4.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da7ec1c7bd283542bba317f48945587345b49b8d44d8098fdf3f2b456073ad4b |
|
MD5 | c7b9439c1a61de43a87a7a80aceba42b |
|
BLAKE2b-256 | 984738e8b293aacd8f62e945f3ce4dc52b4c9a841deeb4abcdc63ae18e47a82f |
File details
Details for the file django_paginator2-1.0.4-py2.py3-none-any.whl
.
File metadata
- Download URL: django_paginator2-1.0.4-py2.py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a872db3d5df84e052222e4708f02f2f2e6420a69053116b447a5e80eaf2a407 |
|
MD5 | bbf405f5a64154d5814e9bda5955d34c |
|
BLAKE2b-256 | 026f75843cfb0acfd705b86b8887fe18daef6fb22453fea83688ba98f5fd705a |