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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file drf-insights-pagination-1.0.1.tar.gz
.
File metadata
- Download URL: drf-insights-pagination-1.0.1.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.6.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d98991acdb02f013c6ca98bcaf597549f9ea1b413dec407b2416eda806e3c4c7 |
|
MD5 | dc9344193a80ac393c175e747ccc49e6 |
|
BLAKE2b-256 | 4da85e61f772d193660de202035d1978a5c279bfa27c6810c441d1a979348f4f |
File details
Details for the file drf_insights_pagination-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: drf_insights_pagination-1.0.1-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.6.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f392451017e921656a2ab01636503fe8545e4fff41bd529100c43cca831f2f4 |
|
MD5 | 77fe1b53f3a7066c11815b2fa4bd9aa1 |
|
BLAKE2b-256 | 4f09aed3d52f30a8343881111e9b51341007c346645750738e202196f34e69de |