Skip to main content

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.

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

Project details


Download files

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

Source Distribution

QuerysetPaginator-0.0.2.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

QuerysetPaginator-0.0.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file QuerysetPaginator-0.0.2.tar.gz.

File metadata

  • Download URL: QuerysetPaginator-0.0.2.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for QuerysetPaginator-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9f50ff36ce369940ec0df2dd98e0ae58b85f19330a6c1cb1decaead7b05e7f11
MD5 bbee77565788b7f5332da3cfed2e3c2c
BLAKE2b-256 53443eb18c185ee20f37ced4769f96d30caf0db071845458d849b309d20f8f96

See more details on using hashes here.

File details

Details for the file QuerysetPaginator-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: QuerysetPaginator-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for QuerysetPaginator-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8002b8918560bf4c53e9a872705c4613a7f753fcd978ebeef18fabfff9d41114
MD5 a285765dc309525e63e6c8aefdd33306
BLAKE2b-256 f676b85aede71b44738c2a409da2c88e10a795b5150437684984c8f0b0cc9016

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page