Skip to main content

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

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)

Source distribution for QuerysetPaginator 0.0.2
File Size Uploaded
QuerysetPaginator-0.0.2.tar.gz 2.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for QuerysetPaginator 0.0.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page