Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

This package helps in paginating evaluated querysets

Project description

Evaluated Queryset Paginator

This python package has been developed in order to overcome the issues of the default django.core.Paginator which does not paginate the evaluate query sets properly.


  • __init__() Constructor of the class which takes two parameters as input:

    1. query_set: The entire query set that needs to be paginated
    2. objects_per_page: The number of objects that are required for each page
  • paginate() This function is called by the constructor by default and performs the main task of forming the pages

  • page() Input parameters- page_number and returns the total number of pages generated


  • EmptyPageException This Exception is raised when the objects_per_page value passed is 0

  • EmptyQuerysetException This Exception is raised when the total number of objects in the query_set is 0

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for QuerysetPaginator, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size QuerysetPaginator-0.0.2-py3-none-any.whl (3.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size QuerysetPaginator-0.0.2.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page