django-ninja-cursor-pagination
This library adds a new pagination class for use with django-ninja which supports cursor-based pagination.
Installation
pip install django-ninja-cursor-pagination
Usage
from ninja.pagination import paginate
from ninja_cursor_pagination import CursorPagination
@router.get("/things", response=list[ThingSchema])
@paginate(CursorPagination)
def list_things(request):
return Thing.objects.order_by("title")
Metadata
Release files for django-ninja-cursor-pagination 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_ninja_cursor_pagination-0.1.0.tar.gz | 8.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_ninja_cursor_pagination-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.4 kB
Release files / django_ninja_cursor_pagination-0.1.0.tar.gz
| Download URL | django_ninja_cursor_pagination-0.1.0.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd0e67abc58db3f7638cdbeaf95d64780fe7eb8efd7bac8b0d03cdd2d3f9c91d
|
|
BLAKE2b-256 checksum How to use checksums |
5053a47b21deef6b755369d7fc483ee7d51c058de34eb7d0ac33005e27ffccce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.2
|
Release files / django_ninja_cursor_pagination-0.1.0-py3-none-any.whl
| Download URL | django_ninja_cursor_pagination-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f35f55d419086f18c28e6bdc007c2c4b2f936354990dfabab8daf19da1d8b6c
|
|
BLAKE2b-256 checksum How to use checksums |
d482e5175c26cd41e2db9093458bfdf3e191648da4843a825c95e1b66e9368e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.2
|