{"id":13765759,"url":"https://github.com/tuffnatty/drf-proxy-pagination","last_synced_at":"2025-03-21T13:32:54.036Z","repository":{"id":57424086,"uuid":"71636006","full_name":"tuffnatty/drf-proxy-pagination","owner":"tuffnatty","description":"Pagination class for Django REST Framework to choose pagination class by query parameter","archived":false,"fork":false,"pushed_at":"2025-01-23T16:36:38.000Z","size":26,"stargazers_count":14,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T23:03:27.378Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tuffnatty.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-10-22T11:53:54.000Z","updated_at":"2025-01-23T16:36:35.000Z","dependencies_parsed_at":"2024-01-07T18:29:12.679Z","dependency_job_id":null,"html_url":"https://github.com/tuffnatty/drf-proxy-pagination","commit_stats":{"total_commits":31,"total_committers":5,"mean_commits":6.2,"dds":0.5483870967741935,"last_synced_commit":"564bc9cf961cf6888570d222bcaa11ce00b963ac"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuffnatty%2Fdrf-proxy-pagination","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuffnatty%2Fdrf-proxy-pagination/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuffnatty%2Fdrf-proxy-pagination/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuffnatty%2Fdrf-proxy-pagination/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuffnatty","download_url":"https://codeload.github.com/tuffnatty/drf-proxy-pagination/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244806192,"owners_count":20513398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T16:00:45.288Z","updated_at":"2025-03-21T13:32:53.746Z","avatar_url":"https://github.com/tuffnatty.png","language":"Python","funding_links":[],"categories":["Packages"],"sub_categories":["Pagination"],"readme":"drf-proxy-pagination\n======================================\n\n|build-status-image| |pypi-version|\n\nOverview\n--------\n\nPagination class for Django REST Framework to choose pagination class by query parameter\n\nRequirements\n------------\n\n-  Python (2.7, 3.4+)\n-  Django (1.8+)\n-  Django REST Framework (3.1+)\n\nInstallation\n------------\n\nInstall using ``pip``\\ …\n\n.. code:: bash\n\n    $ pip install drf-proxy-pagination\n\nIn ``settings.py``, choose `ProxyPagination` as your default pagination class\nand configure it:\n\n.. code:: python\n\n    REST_FRAMEWORK = {\n        ...\n        'DEFAULT_PAGINATION_CLASS': 'proxy_pagination.ProxyPagination',\n    }\n    PROXY_PAGINATION_PARAM = 'pager'\n    PROXY_PAGINATION_DEFAULT = 'rest_framework.pagination.LimitOffsetPagination'\n    PROXY_PAGINATION_MAPPING = {\n        'cursor': 'rest_framework.pagination.CursorPagination',\n    }\n\nExample\n-------\n\nhttp://api.example.org/accounts/ gives default pagination.\nhttp://api.example.org/accounts/?pager=cursor gives CursorPagination for heavy queries.\n\nTesting\n-------\n\nInstall testing requirements.\n\n.. code:: bash\n\n    $ pip install -r requirements.txt\n\nRun with runtests.\n\n.. code:: bash\n\n    $ ./runtests.py\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’ll 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/tuffnatty/drf-proxy-pagination.svg?branch=master\n   :target: http://travis-ci.org/tuffnatty/drf-proxy-pagination?branch=master\n.. |pypi-version| image:: https://img.shields.io/pypi/v/drf-proxy-pagination.svg\n   :target: https://pypi.python.org/pypi/drf-proxy-pagination\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuffnatty%2Fdrf-proxy-pagination","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuffnatty%2Fdrf-proxy-pagination","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuffnatty%2Fdrf-proxy-pagination/lists"}