Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.