Metadata-Version: 2.1
Name: QuerysetPaginator
Version: 0.0.2
Summary: This package helps in paginating evaluated querysets
Home-page: https://github.com/GetMeLive/queryset-paginator
Author: GetMeLive
Author-email: tech@getmelive.in
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown

### 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.

#### Functions

  * `__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


### Exceptions

  * `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


