You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

django-paginator2

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-paginator2

Simple Django Paginator

1.1.3
pipPyPI
Maintainers
1

================ django-paginator

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)

Keywords

Django Paginator Pagination

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts