Skip to main content

Provides pagination class that adheres to Insights IPP-12.

Project description

DRF Insights Pagination

A simple library to add a paginator to DRF that follows Insights IPP-12.

Installation and Usage

Install the library

pip install drf-insights-pagination

Change your pagination class, and optionally APP_PATH in your settings

REST_FRAMEWORK = {
    'DEFAULT_PAGINATION_CLASS': 'drf_insights_pagination.pagination.InsightsPagination',
}
INSIGHTS_PAGINATION_APP_PATH = '/api/application'

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

drf-insights-pagination-1.0.1.tar.gz (15.5 kB view hashes)

Uploaded Source

Built Distribution

drf_insights_pagination-1.0.1-py3-none-any.whl (15.9 kB view hashes)

Uploaded Python 3

Supported by

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