Skip to main content

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

django-paginator2-1.0.3.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

django_paginator2-1.0.3-py2.py3-none-any.whl (3.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-paginator2-1.0.3.tar.gz.

File metadata

File hashes

Hashes for django-paginator2-1.0.3.tar.gz
Algorithm Hash digest
SHA256 1f2b6c83170d17d1736e436d92140220364144e51781978df5d0d30a84ab00b5
MD5 802aa49367b185ca30ac60be76c5bbb7
BLAKE2b-256 b98e80d50a7a4b0a26d0cb8bf0b5e9fe9379f66c7ac90eba7f5da0fd58cc5b8d

See more details on using hashes here.

File details

Details for the file django_paginator2-1.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_paginator2-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9454e941c0c0a329dd05fdbb3e52213e310be9e336c60d674416df0f6d027d9e
MD5 bb9e42e64e4329b8ffaa552741e2f20f
BLAKE2b-256 6c3155785d83d5d8aea30f1bfe86c348ef957f9ba5f06236290bc557d0802076

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page