{ "info": { "author": "Andrew Dodd", "author_email": "andrew.john.dodd@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: Other/Proprietary License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "drf-timeordered-pagination\n======================================\n\n|build-status-image| |pypi-version|\n\nOverview\n--------\n\nPagination utilities for Django REST Framework to allow for pagination by a mutable, but time-ordered field (like 'modified').\n\nRequirements\n------------\n\n- Python (2.7, 3.3, 3.4)\n- Django (1.8+)\n- Django REST Framework (3.1+)\n\nImportant notes\n---------------\n\nThe layout of the docs and the Git project were borrowed from:\n- drf-proxy-pagination\n- django-nsync (which was borrowed from other people too!)\n\nInstallation\n------------\n\nInstall using ``pip``\\ \u2026\n\n.. code:: bash\n\n $ pip install drf-timeordered-pagination\n\nIn ``views.py``, hook up your own integration into the pagination, or use one of the provided ones like so:\n\n.. code:: python\n\n class ExampleClass(django.Model):\n ...\n modified = DateTimeField(...)\n ...\n\n\n from timeordered_pagination.views import TimeOrderedPaginationViewSetMixin\n class ExampleClassView(\n TimeOrderedPaginationViewSetMixin,\n ...,\n viewsets.ModelViewSet)\n ...\n\n\n\nExample\n-------\n\n- http://api.example.org/examples/ gives default pagination.\n- http://api.example.org/examples/?modified_after=1900-01-01T00:00:00Z gives all examples, modified after (greater than) Midnight, 1 Jan 1900, in modified order\n- http://api.example.org/examples/?modified_from=1900-01-01T00:00:00Z gives all examples, modified from (greater than or equal to) Midnight, 1 Jan 1900, in modified order\n\nTesting\n-------\n\nInstall testing requirements.\n\n.. code:: bash\n\n $ pip install -r requirements.txt\n\nRun with pytest.\n\n.. code:: bash\n\n $ py.test\n\nYou can also use the excellent `tox`_ testing tool to run the tests\nagainst all supported versions of Python and Django. Install tox\nglobally, and then simply run:\n\n.. code:: bash\n\n $ tox\n\nDocumentation\n-------------\n\nTo build the documentation, you\u2019ll need to install ``mkdocs``.\n\n.. code:: bash\n\n $ pip install mkdocs\n\nTo preview the documentation:\n\n.. code:: bash\n\n $ mkdocs serve\n Running at: http://127.0.0.1:8000/\n\nTo build the documentation:\n\n.. code:: bash\n\n $ mkdocs build\n\n.. _tox: http://tox.readthedocs.org/en/latest/\n\n.. |build-status-image| image:: https://secure.travis-ci.org/andrewdodd/drf-timeordered-pagination.svg?branch=master\n :target: http://travis-ci.org/andrewdodd/drf-timeordered-pagination?branch=master\n.. |pypi-version| image:: https://img.shields.io/pypi/v/drf-timeordered-pagination.svg\n :target: https://pypi.python.org/pypi/drf-timeordered-pagination\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/andrewdodd/drf-timeordered-pagination", "keywords": "Django Rest Framework", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "drf_timeordered_pagination", "package_url": "https://pypi.org/project/drf_timeordered_pagination/", "platform": "", "project_url": "https://pypi.org/project/drf_timeordered_pagination/", "project_urls": { "Homepage": "https://github.com/andrewdodd/drf-timeordered-pagination" }, "release_url": "https://pypi.org/project/drf_timeordered_pagination/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "Utility classes to provide time-ordered pagination over ", "version": "0.1.1" }, "last_serial": 2675862, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "324c63ba2b5661cd71dd226cf504ae3f", "sha256": "7271b19e134042db745d69e7d36f5eceb10b68141b961defc5c2f1dd9979020e" }, "downloads": -1, "filename": "drf_timeordered_pagination-0.1.0.tar.gz", "has_sig": false, "md5_digest": "324c63ba2b5661cd71dd226cf504ae3f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5885, "upload_time": "2017-03-01T15:09:43", "url": "https://files.pythonhosted.org/packages/4a/1c/fe14b84532b0ae9246d108fd008033c965a2533affc88066856aaf55339b/drf_timeordered_pagination-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "139af0efd4c296fd4932f2195d1ed8f5", "sha256": "6001fc286c5be8d276e70e46eb4a5b0f3d86fe640c691743f336fb5ba1b1e0ea" }, "downloads": -1, "filename": "drf_timeordered_pagination-0.1.1.tar.gz", "has_sig": false, "md5_digest": "139af0efd4c296fd4932f2195d1ed8f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5883, "upload_time": "2017-03-01T15:15:31", "url": "https://files.pythonhosted.org/packages/68/e4/c0c7ff572b136dadfa0b845f249486e121270c1ffe28ba14ffce701e26fb/drf_timeordered_pagination-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "139af0efd4c296fd4932f2195d1ed8f5", "sha256": "6001fc286c5be8d276e70e46eb4a5b0f3d86fe640c691743f336fb5ba1b1e0ea" }, "downloads": -1, "filename": "drf_timeordered_pagination-0.1.1.tar.gz", "has_sig": false, "md5_digest": "139af0efd4c296fd4932f2195d1ed8f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5883, "upload_time": "2017-03-01T15:15:31", "url": "https://files.pythonhosted.org/packages/68/e4/c0c7ff572b136dadfa0b845f249486e121270c1ffe28ba14ffce701e26fb/drf_timeordered_pagination-0.1.1.tar.gz" } ] }