{ "info": { "author": "Philip J Grabner, Canary Health Inc", "author_email": "pjg.github@ubergrabner.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 1 - Planning", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "License :: Public Domain", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "==================\nPyramid Pagination\n==================\n\nEasy pagination for Pyramid applications! It currently has built-in support\nfor paginating:\n\n* Iterable types (lists, tuples)\n* SQLAlchemy Query objects\n\nBut can support pagination over any data type via extensions.\n\n\nProject\n=======\n\n* Homepage: https://github.com/canaryhealth/pyramid_pagination\n* Bugs: https://github.com/canaryhealth/pyramid_pagination/issues\n* Manual: https://github.com/canaryhealth/pyramid_pagination/blob/master/doc/manual.rst\n\n\nTL;DR\n=====\n\nInstall with:\n\n.. code-block:: bash\n\n $ pip install pyramid_pagination\n\nUse default pagination with:\n\n.. code-block:: python\n\n from pyramid_pagination import paginate\n\n @paginate\n def view(request): return range(30)\n\nThen a request without parameters results in:\n\n.. code-block:: json\n\n {\n \"result\": [0, 1, 2, ... , 22, 23, 24],\n \"page\": {\n \"offset\": 0,\n \"limit\": 25,\n \"count\": 30,\n \"attribute\": \"result\"\n }\n }\n\nPaginating with some defaults changed and adding some attribute-based\nsort methods:\n\n.. code-block:: python\n\n from pyramid_pagination import paginate\n\n @paginate(limit_default=2, comparers=['name', 'value'])\n def view(request):\n return [\n dict(name='alph', value=1),\n dict(name='beta', value=2),\n dict(name='zeta', value=3),\n dict(name='alph', value=4),\n ]\n\nThen a request with parameters\n``?page.offset=1&page.limit=3&page.sort=name-,value`` results in:\n\n.. code-block:: json\n\n {\n \"result\": [\n {\"name\": \"beta\", \"value\": 2},\n {\"name\": \"alph\", \"value\": 1},\n {\"name\": \"alph\", \"value\": 4}\n ],\n \"page\": {\n \"offset\": 1,\n \"limit\": 3,\n \"count\": 4,\n \"sort\": \"name-,value\",\n \"attribute\": \"result\"\n }\n }", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/canaryhealth/pyramid_pagination", "keywords": "pyramid application pagination paging", "license": "MIT (http://opensource.org/licenses/MIT)", "maintainer": null, "maintainer_email": null, "name": "pyramid_pagination", "package_url": "https://pypi.org/project/pyramid_pagination/", "platform": "any", "project_url": "https://pypi.org/project/pyramid_pagination/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/canaryhealth/pyramid_pagination" }, "release_url": "https://pypi.org/project/pyramid_pagination/0.1.6/", "requires_dist": null, "requires_python": null, "summary": "Easy pagination for Pyramid applications", "version": "0.1.6" }, "last_serial": 2060882, "releases": { "0.1.0": [], "0.1.1": [ { "comment_text": "", "digests": { "md5": "a6a5955945e90c437709061328c221de", "sha256": "e835a00fe2b244ed87ddc890d34c3ea39e33402f23a6e0fc2bb05fe11a772836" }, "downloads": -1, "filename": "pyramid_pagination-0.1.1.tar.gz", "has_sig": false, "md5_digest": "a6a5955945e90c437709061328c221de", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15259, "upload_time": "2015-04-02T20:28:04", "url": "https://files.pythonhosted.org/packages/bb/9d/d2aab9bea94abc7e7850e5e9e60ef35216d9d6077774c68e31e629c152bd/pyramid_pagination-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "39ed38c47f0a0a9f5d35c2ea6f1bc5e8", "sha256": "50435308f04d3eea12390b65761c06e815d835b56e4c929eeafec02681ba1b8c" }, "downloads": -1, "filename": "pyramid_pagination-0.1.2.tar.gz", "has_sig": false, "md5_digest": "39ed38c47f0a0a9f5d35c2ea6f1bc5e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15321, "upload_time": "2015-04-07T01:31:53", "url": "https://files.pythonhosted.org/packages/e6/f8/9c823afbd5875337eda43eda9856e6b80e73e45132667aa1adb2ec9feb9b/pyramid_pagination-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "c288dfbb4c8b639bd35bdfb54460536d", "sha256": "3d6ed38f860b8bf4dd0acc26aeaea4c2ea755b4ea3c7a4bb8c7319b950c72519" }, "downloads": -1, "filename": "pyramid_pagination-0.1.3.tar.gz", "has_sig": false, "md5_digest": "c288dfbb4c8b639bd35bdfb54460536d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16058, "upload_time": "2015-04-08T19:30:29", "url": "https://files.pythonhosted.org/packages/18/7d/fed5f9bea9f2ec34c03b57ade063b7f4735004d57b1e80c18279c5ba689f/pyramid_pagination-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "5e4659972de681a96e6e22aacdff0771", "sha256": "9ce2f9eec82bbedad8fa19d5908887cf4c2528bb67c677a90d9a0cb6c07b7161" }, "downloads": -1, "filename": "pyramid_pagination-0.1.4.tar.gz", "has_sig": false, "md5_digest": "5e4659972de681a96e6e22aacdff0771", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17233, "upload_time": "2015-08-19T18:27:42", "url": "https://files.pythonhosted.org/packages/96/bb/3ce45823b6fefb9fb7f463248140c7082c18b22034bb9ff2229af4b5e5d1/pyramid_pagination-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "1b3a698f464228f47a16126b9f328b32", "sha256": "8ab37538cd41788fe963cc6262955ac4041b28e034caed15a9b85e196003f77c" }, "downloads": -1, "filename": "pyramid_pagination-0.1.5.tar.gz", "has_sig": false, "md5_digest": "1b3a698f464228f47a16126b9f328b32", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17196, "upload_time": "2015-12-04T16:49:45", "url": "https://files.pythonhosted.org/packages/67/fe/4205c4fa8bc8488d995d9f2292b47e347c84d85f6b5d9984ef0f1189c225/pyramid_pagination-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "20f24d4faafe91b52688f874f62c0cff", "sha256": "769ca15c1310521d9da4bf9a38feba317eda0f594ae565656879fa537d693222" }, "downloads": -1, "filename": "pyramid_pagination-0.1.6.tar.gz", "has_sig": false, "md5_digest": "20f24d4faafe91b52688f874f62c0cff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17267, "upload_time": "2016-04-12T21:58:51", "url": "https://files.pythonhosted.org/packages/68/f2/1ebf9d557e4f000e02640d7455849c7ab86e55d1b510087f32a0dab61842/pyramid_pagination-0.1.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "20f24d4faafe91b52688f874f62c0cff", "sha256": "769ca15c1310521d9da4bf9a38feba317eda0f594ae565656879fa537d693222" }, "downloads": -1, "filename": "pyramid_pagination-0.1.6.tar.gz", "has_sig": false, "md5_digest": "20f24d4faafe91b52688f874f62c0cff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17267, "upload_time": "2016-04-12T21:58:51", "url": "https://files.pythonhosted.org/packages/68/f2/1ebf9d557e4f000e02640d7455849c7ab86e55d1b510087f32a0dab61842/pyramid_pagination-0.1.6.tar.gz" } ] }