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.0.tar.gz
.
File metadata
- Download URL: drf-insights-pagination-1.0.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9710f5b3ed0886d1e936862b80f884c4711abeb9b712c2948c20093e54c2359 |
|
MD5 | 2a2ad392e9357b6404dac28a6b225236 |
|
BLAKE2b-256 | 59546d3281ba979bd52460de58609a1dfdf777c5961c3efc70be3bbafa20d6ce |
File details
Details for the file drf_insights_pagination-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: drf_insights_pagination-1.0.0-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c4126b9c5ead1ef7f5bff436eb0142a872723934a4c0fbe634c4aec0ef0a216 |
|
MD5 | bd7a4fc6bf760a9551825f036bda444c |
|
BLAKE2b-256 | 2a263de78b786f3f8cb5e35713f3abea6324b75c0c093493ef7906fdfeb07512 |