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.1.0.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

django_paginator2-1.1.0-py2.py3-none-any.whl (2.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: django-paginator2-1.1.0.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/18.5 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.10

File hashes

Hashes for django-paginator2-1.1.0.tar.gz
Algorithm Hash digest
SHA256 71155097f7579cddf4a0888288a52cf1ace111de50b739368d8152c3484c73b3
MD5 f25996c5e96f1c3fa029e9dc56a6590c
BLAKE2b-256 202da9ad80178e67f96cd3600e8314c18d9ed7d3227d73c40a4015686fd30f21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_paginator2-1.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/18.5 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.10

File hashes

Hashes for django_paginator2-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a0e95bae80c54b7f58df3cc6b5e8f3342d13aafb516b90007f958ac5ee899d7e
MD5 7dcb48fb430dfdadde94fe6f1504619a
BLAKE2b-256 a459669961e2c52cef5c2db3649d31f5333104eeb66aa974fa28d0bf091dcff7

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