
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.