{ "info": { "author": "John Anderson, Marc Abramowitz", "author_email": "johna@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "tomb_routes\n=================================\n\n.. image:: https://img.shields.io/pypi/v/tomb_routes.svg\n :target: https://pypi.python.org/pypi/tomb_routes\n\n.. image:: https://img.shields.io/travis/tomborine/tomb_routes.svg\n :target: https://travis-ci.org/tomborine/tomb_routes\n\n.. image:: https://coveralls.io/repos/tomborine/tomb_routes/badge.png?branch=master\n :target: https://coveralls.io/r/tomborine/tomb_routes?branch=master\n\nIntro\n=================================\n\nA set of simple defaults for Pyramid_ routing.\n\nPyramid's `URL dispatch`_ has separate concepts for **routes** and **views**.\nThis gives additional flexibility in that you can one route map to multiple\nviews, using different predicates (e.g.: predicates depending on `Accept`\nheader, whether request is XHR or not, etc.). In many applications, this\nflexibility is not needed and having both **routes** and **views** adds a bit\nof complexity and duplication, and reduces DRYness. This module implements some\neasy-to-use mechanisms that create a route and a view in one step, resulting in\nsimpler, easier to understand code. This kind of makes Pyramid's routing look a\nbit more like Flask_, albeit without Flask's controversial `thread locals`_.\n\nYou can use ``simple_route`` as a decorator:\n\n.. code-block:: python\n\n from tomb_routes import simple_route\n from pyramid.response import Response\n\n @simple_route('/hello/{name}')\n def my_route(request, name):\n return Response('Hello %s' % name)\n\nor you can use it from the configurator:\n\n.. code-block:: python\n\n config.include('tomb_routes')\n config.add_simple_route(\n '/hello/{name}', view_callable,\n renderer='json'\n )\n\n\nInspirations\n=========================\n\nFrameworks with very simple routing (including so-called \"microframeworks\") are\nnothing new. Here are a few in the Python world:\n\n- minion_\n- Klein_\n- Flask_\n\nPyramid is a very powerful and extensible web framework and it's a framework\nthat we love, but sometimes we want very simple routing. This package brings\nthe simplified routing from microframeworks to Pyramid, so we can have our cake\nand eat it too.\n\n\n.. _Pyramid: http://www.trypyramid.com/\n.. _URL dispatch: http://docs.pylonsproject.org/docs/pyramid/en/latest/narr/urldispatch.html\n.. _minion: https://pypi.python.org/pypi/minion\n.. _Klein: https://github.com/Twisted/Klein\n.. _Flask: http://flask.pocoo.org/\n.. _thread locals: http://flask.pocoo.org/docs/latest/design/#thread-locals", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tomborine/tomb_routes", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "tomb_routes", "package_url": "https://pypi.org/project/tomb_routes/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/tomb_routes/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/tomborine/tomb_routes" }, "release_url": "https://pypi.org/project/tomb_routes/0.0.8/", "requires_dist": null, "requires_python": null, "summary": "A set of sane routing defaults for the Pyramid web framework", "version": "0.0.8" }, "last_serial": 2091501, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "08c36bd3d0348747969e9bd1bb1cf19d", "sha256": "88cc96f2268bb462be8157d9478cb13f6ea5376f046a105efdd514fad9640176" }, "downloads": -1, "filename": "tomb_routes-0.0.1.tar.gz", "has_sig": false, "md5_digest": "08c36bd3d0348747969e9bd1bb1cf19d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3545, "upload_time": "2014-12-25T00:45:18", "url": "https://files.pythonhosted.org/packages/6e/30/8962fc45c8096052c5d277f589bccba798c38e41c10e17e3ed1fd41abdab/tomb_routes-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "11f3cd37920dd144648e6fbba129a291", "sha256": "95ef52907ddf881836384bdd2407ad98f33c121a8a2c061fe60bddcb6bedd85c" }, "downloads": -1, "filename": "tomb_routes-0.0.2.tar.gz", "has_sig": false, "md5_digest": "11f3cd37920dd144648e6fbba129a291", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5190, "upload_time": "2015-01-16T19:48:53", "url": "https://files.pythonhosted.org/packages/65/71/1f5283c065926f2c8e40b4415b1fba86ce158ec63354a777ca8c33066628/tomb_routes-0.0.2.tar.gz" } ], "0.0.3.dev15": [ { "comment_text": "", "digests": { "md5": "5ba9b4e3c4ee9486e916a124b4a0e325", "sha256": "230da9311a2135c6ec5bd8b457920aaca3f622c0a5ac93512a7474caf0e2c933" }, "downloads": -1, "filename": "tomb_routes-0.0.3.dev15.tar.gz", "has_sig": false, "md5_digest": "5ba9b4e3c4ee9486e916a124b4a0e325", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6278, "upload_time": "2015-07-08T18:27:35", "url": "https://files.pythonhosted.org/packages/54/83/127578a4fa62ab97f63ede3b1cca4d82422c80e832f8ba72c2e057aa2064/tomb_routes-0.0.3.dev15.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "187932df08f22495d10f9687cc7b5d6f", "sha256": "f70cb01fdcbab13177ab2fcea5501476037595f7821f0ef8ab0638ea14f53ae6" }, "downloads": -1, "filename": "tomb_routes-0.0.4.tar.gz", "has_sig": false, "md5_digest": "187932df08f22495d10f9687cc7b5d6f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6460, "upload_time": "2015-07-08T18:33:50", "url": "https://files.pythonhosted.org/packages/9f/53/5ea69995612b4ede6830e62eab98f050ce359a9ac200097fb015f278e910/tomb_routes-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "72fa1a4d7e61beeaa88155bbb6a29a28", "sha256": "2360a3ed2fa10c59317439f9817de8b6299633c34a7d5bbb92aaeff7deecce67" }, "downloads": -1, "filename": "tomb_routes-0.0.5.tar.gz", "has_sig": false, "md5_digest": "72fa1a4d7e61beeaa88155bbb6a29a28", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6525, "upload_time": "2015-08-09T18:39:34", "url": "https://files.pythonhosted.org/packages/3a/40/b35d4c0e4bff1358ad2d64d4d2b1cd5a1cb566e168a56a563320ece845b1/tomb_routes-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "c93127ecd996a021b683e71e7b3271cb", "sha256": "149c0b269a7e5223ae4273b6420b602b448ce0e3820778907e5c1ebc17d2d06f" }, "downloads": -1, "filename": "tomb_routes-0.0.6.tar.gz", "has_sig": false, "md5_digest": "c93127ecd996a021b683e71e7b3271cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6736, "upload_time": "2015-08-09T19:08:56", "url": "https://files.pythonhosted.org/packages/22/00/3fa4b8618ec8b811f00f0d46cf44110b71a370db7829ded272fff8299d3c/tomb_routes-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "7a4e1181b27b4d629a1be2df1c071d88", "sha256": "68f617687c3bec27e06e4c273df42e197819782f1ace7a308661ed6b71c67980" }, "downloads": -1, "filename": "tomb_routes-0.0.7.tar.gz", "has_sig": false, "md5_digest": "7a4e1181b27b4d629a1be2df1c071d88", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6760, "upload_time": "2015-08-17T02:14:08", "url": "https://files.pythonhosted.org/packages/8d/0f/038bbd908d4dc27fcffd248e2d39a25c090c691146f63b58fb4b05134079/tomb_routes-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "b5d3e3e18d5db48dc3817c2d82dfae22", "sha256": "795516b91ce77e1649f01bb94b37d826df72e8674ff0f6fe2eade10f5e558214" }, "downloads": -1, "filename": "tomb_routes-0.0.8.tar.gz", "has_sig": false, "md5_digest": "b5d3e3e18d5db48dc3817c2d82dfae22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6880, "upload_time": "2016-04-29T20:12:20", "url": "https://files.pythonhosted.org/packages/85/15/94ee3895b7dd017c7a68122dcdbc8367e9ec95a8f9c7082555d85bdce39d/tomb_routes-0.0.8.tar.gz" } ], "0.0.8.dev1": [ { "comment_text": "", "digests": { "md5": "8d456a5b04a7469bc399de00ab231551", "sha256": "c7e18b681c54909fb140e94e102accff3153da845fb7dac16e2e9aad4f433cae" }, "downloads": -1, "filename": "tomb_routes-0.0.8.dev1.tar.gz", "has_sig": false, "md5_digest": "8d456a5b04a7469bc399de00ab231551", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6885, "upload_time": "2016-04-29T20:11:51", "url": "https://files.pythonhosted.org/packages/aa/ad/af3b516c66fb6689b8d43ac7ee2e8cb780afc5cf53ea7e90a30502730a49/tomb_routes-0.0.8.dev1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b5d3e3e18d5db48dc3817c2d82dfae22", "sha256": "795516b91ce77e1649f01bb94b37d826df72e8674ff0f6fe2eade10f5e558214" }, "downloads": -1, "filename": "tomb_routes-0.0.8.tar.gz", "has_sig": false, "md5_digest": "b5d3e3e18d5db48dc3817c2d82dfae22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6880, "upload_time": "2016-04-29T20:12:20", "url": "https://files.pythonhosted.org/packages/85/15/94ee3895b7dd017c7a68122dcdbc8367e9ec95a8f9c7082555d85bdce39d/tomb_routes-0.0.8.tar.gz" } ] }