Skip to main content

build-status-image pypi-version

Overview

Pagination utilities for Django REST Framework to allow for pagination by a mutable, but time-ordered field (like ‘modified’).

Requirements

  • Python (2.7, 3.3, 3.4)

  • Django (1.8+)

  • Django REST Framework (3.1+)

Important notes

The layout of the docs and the Git project were borrowed from: - drf-proxy-pagination - django-nsync (which was borrowed from other people too!)

Installation

Install using pip…

$ 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:

class ExampleClass(django.Model):
    ...
    modified = DateTimeField(...)
    ...


from timeordered_pagination.views import TimeOrderedPaginationViewSetMixin
class ExampleClassView(
    TimeOrderedPaginationViewSetMixin,
    ...,
    viewsets.ModelViewSet)
    ...

Example

Testing

Install testing requirements.

$ pip install -r requirements.txt

Run with pytest.

$ 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:

$ tox

Documentation

To build the documentation, you’ll need to install mkdocs.

$ pip install mkdocs

To preview the documentation:

$ mkdocs serve
Running at: http://127.0.0.1:8000/

To build the documentation:

$ mkdocs build

Metadata

Release files for drf_timeordered_pagination 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for drf_timeordered_pagination 0.1.1
File Size Uploaded Provenance
drf_timeordered_pagination-0.1.1.tar.gz 5.9 kB Without provenance Details

Release files / drf_timeordered_pagination-0.1.1.tar.gz

Download URL drf_timeordered_pagination-0.1.1.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6001fc286c5be8d276e70e46eb4a5b0f3d86fe640c691743f336fb5ba1b1e0ea
BLAKE2b-256 checksum
How to use checksums
68e4c0c7ff572b136dadfa0b845f249486e121270c1ffe28ba14ffce701e26fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for drf_timeordered_pagination 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page