{ "info": { "author": "Morgan Bohn", "author_email": "morgan.bohn@unistra.fr", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3" ], "description": "django-rest-framework-custom-paginations\n========================================\n\nCustom paginations for django rest framework\n\nCompatibility\n-------------\n\nwork with :\n * Python 2.7 / 3.4\n * Dango 1.6 / 1.7\n * Django Rest Framework 2.4 / 3.0 / 3.1 / 3.2 / 3.3\n\nInstallation\n------------\n\nInstall the package from pypi: ::\n\n pip install djangorestframework-custom-paginations\n\nAdd the application in your django settings: ::\n\n DJANGO_APPS = ('rest_framework_custom_paginations',)\n\nConfigure your rest framework for DRF >= 3.1: ::\n\n REST_FRAMEWORK = {\n 'DEFAULT_PAGINATION_CLASS': 'rest_framework_custom_paginations.classes.SporePagination',\n }\n\nor configure your rest framework for DRF < 3.1: ::\n\n REST_FRAMEWORK = {\n 'DEFAULT_PAGINATION_SERIALIZER_CLASS': 'rest_framework_custom_paginations.paginations.SporePaginationSerializer'\n }\n\nUsage\n-----\n\nAdd the following parameters in a ListAPIView : ::\n\n class PersonList(generics.ListAPIView):\n \"\"\" list of person \"\"\"\n ...\n paginate_by = 100\n paginate_by_param = 'page_size'\n max_paginate_by = 500\n\nExample\n-------\n\nResults of Spore Pagination : ::\n\n {\n \"count\": 532,\n \"next\": \"http://myurls/persons.json?structure=mystructure&page=3\",\n \"next_params\": {\n \"page\": 3,\n \"structure\": \"mystructure\"\n },\n \"num_pages\": 6,\n \"previous\": \"http://myurls/persons.json?structure=mystructure&page=1\",\n \"previous_params\": {\n \"page\": 1,\n \"structure\": \"mystructure\"\n },\n \"results\": [\n ...\n ]\n }", "description_content_type": null, "docs_url": null, "download_url": "https://pypi.python.org/pypi/djangorestframework-custom-paginations", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/unistra/django-rest-framework-custom-paginations", "keywords": "django,REST,rest_framework,paginations", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "djangorestframework-custom-paginations", "package_url": "https://pypi.org/project/djangorestframework-custom-paginations/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/djangorestframework-custom-paginations/", "project_urls": { "Download": "https://pypi.python.org/pypi/djangorestframework-custom-paginations", "Homepage": "https://github.com/unistra/django-rest-framework-custom-paginations" }, "release_url": "https://pypi.org/project/djangorestframework-custom-paginations/1.2.2/", "requires_dist": null, "requires_python": null, "summary": "Custom paginations for Django REST Framework", "version": "1.2.2" }, "last_serial": 2836440, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "877b382935d230d714cf70e501180da0", "sha256": "5207490c1508aefee2d3abfb3339cbf4214e9c3721c12ff4fe44484fe6297fb0" }, "downloads": -1, "filename": "djangorestframework-custom-paginations-1.0.0.zip", "has_sig": false, "md5_digest": "877b382935d230d714cf70e501180da0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13719, "upload_time": "2015-06-02T12:34:56", "url": "https://files.pythonhosted.org/packages/fe/9b/5b835ad347f183be991a34ee0329399d3ec229bb2fe9bb206b2a10523598/djangorestframework-custom-paginations-1.0.0.zip" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "315bf7faa4202504bf09a2aeed70400f", "sha256": "36667e00fc2a9ff9ac4d1da77c39c9f1198322c68c475eb3d87cabdf8a105d4d" }, "downloads": -1, "filename": "djangorestframework-custom-paginations-1.1.0.tar.gz", "has_sig": false, "md5_digest": "315bf7faa4202504bf09a2aeed70400f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9691, "upload_time": "2015-06-02T14:16:07", "url": "https://files.pythonhosted.org/packages/57/e3/a2cff14513615cfe2b838370d7abf238cdf56a3056244547688cfe8f1935/djangorestframework-custom-paginations-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "dae93bbf4a01c3ae03c9a520c44e10a3", "sha256": "dc22db9ec0829a11fcf11c1748001f94b46b9e9a20dea75213692b6940b68dc7" }, "downloads": -1, "filename": "djangorestframework-custom-paginations-1.2.0.tar.gz", "has_sig": false, "md5_digest": "dae93bbf4a01c3ae03c9a520c44e10a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10107, "upload_time": "2017-03-30T14:01:50", "url": "https://files.pythonhosted.org/packages/bd/21/236dbc26117cb44bc1b8c564a3e22d0b1373fa40817358fd4c4a397fba99/djangorestframework-custom-paginations-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "8683285908f75c05ee4973ddbc8eb638", "sha256": "dcd44c8a6198a02966ea8ae6c536455f76258625a2a5618c5bd7c8565dad24fb" }, "downloads": -1, "filename": "djangorestframework-custom-paginations-1.2.1.tar.gz", "has_sig": false, "md5_digest": "8683285908f75c05ee4973ddbc8eb638", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11265, "upload_time": "2017-03-30T14:41:15", "url": "https://files.pythonhosted.org/packages/d2/6c/e9db3191044b9ed0e68f568bc7f81db5261a6679e914bb7d7063db8c7827/djangorestframework-custom-paginations-1.2.1.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "f8367ac1299f3cc20ce24b454372c771", "sha256": "35d5189e36d050ccdfeafd5c68fd5b4ae2111b7f7c48f00fab204fc6b2b178af" }, "downloads": -1, "filename": "djangorestframework-custom-paginations-1.2.2.tar.gz", "has_sig": false, "md5_digest": "f8367ac1299f3cc20ce24b454372c771", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11274, "upload_time": "2017-04-28T07:23:20", "url": "https://files.pythonhosted.org/packages/bb/5c/65b70c02bf0e4432af060d5ba29d19ff6ad6d3509dce199d4d1218f4b02d/djangorestframework-custom-paginations-1.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f8367ac1299f3cc20ce24b454372c771", "sha256": "35d5189e36d050ccdfeafd5c68fd5b4ae2111b7f7c48f00fab204fc6b2b178af" }, "downloads": -1, "filename": "djangorestframework-custom-paginations-1.2.2.tar.gz", "has_sig": false, "md5_digest": "f8367ac1299f3cc20ce24b454372c771", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11274, "upload_time": "2017-04-28T07:23:20", "url": "https://files.pythonhosted.org/packages/bb/5c/65b70c02bf0e4432af060d5ba29d19ff6ad6d3509dce199d4d1218f4b02d/djangorestframework-custom-paginations-1.2.2.tar.gz" } ] }