
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
drf_timeordered_pagination
Advanced tools
|build-status-image| |pypi-version|
Pagination utilities for Django REST Framework to allow for pagination by a mutable, but time-ordered field (like 'modified').
The layout of the docs and the Git project were borrowed from:
Install using pip
\ …
.. code:: bash
$ pip install drf-timeordered-pagination
In views.py
, hook up your own integration into the pagination, or use one of the provided ones like so:
.. code:: python
class ExampleClass(django.Model):
...
modified = DateTimeField(...)
...
from timeordered_pagination.views import TimeOrderedPaginationViewSetMixin
class ExampleClassView(
TimeOrderedPaginationViewSetMixin,
...,
viewsets.ModelViewSet)
...
Install testing requirements.
.. code:: bash
$ pip install -r requirements.txt
Run with pytest.
.. code:: bash
$ py.test
You can also use the excellent tox
_ testing tool to run the tests
against all supported versions of Python and Django. Install tox
globally, and then simply run:
.. code:: bash
$ tox
To build the documentation, you’ll need to install mkdocs
.
.. code:: bash
$ pip install mkdocs
To preview the documentation:
.. code:: bash
$ mkdocs serve
Running at: http://127.0.0.1:8000/
To build the documentation:
.. code:: bash
$ mkdocs build
.. _tox: http://tox.readthedocs.org/en/latest/
.. |build-status-image| image:: https://secure.travis-ci.org/andrewdodd/drf-timeordered-pagination.svg?branch=master :target: http://travis-ci.org/andrewdodd/drf-timeordered-pagination?branch=master .. |pypi-version| image:: https://img.shields.io/pypi/v/drf-timeordered-pagination.svg :target: https://pypi.python.org/pypi/drf-timeordered-pagination
FAQs
Utility classes to provide time-ordered pagination over
We found that drf_timeordered_pagination demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.