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:query_set: The entire query set that needs to be paginatedobjects_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_numberand returns the total number of pages generated
Exceptions
-
EmptyPageExceptionThis Exception is raised when theobjects_per_pagevalue passed is 0 -
EmptyQuerysetExceptionThis Exception is raised when the total number of objects in thequery_setis 0
Release files for QuerysetPaginator 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| QuerysetPaginator-0.0.2.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| QuerysetPaginator-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.6 kB
Release files / QuerysetPaginator-0.0.2.tar.gz
| Download URL | QuerysetPaginator-0.0.2.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f50ff36ce369940ec0df2dd98e0ae58b85f19330a6c1cb1decaead7b05e7f11
|
|
BLAKE2b-256 checksum How to use checksums |
53443eb18c185ee20f37ced4769f96d30caf0db071845458d849b309d20f8f96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.1
|
Release files / QuerysetPaginator-0.0.2-py3-none-any.whl
| Download URL | QuerysetPaginator-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8002b8918560bf4c53e9a872705c4613a7f753fcd978ebeef18fabfff9d41114
|
|
BLAKE2b-256 checksum How to use checksums |
f676b85aede71b44738c2a409da2c88e10a795b5150437684984c8f0b0cc9016
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.1
|