{ "info": { "author": "Vincent Jauneau", "author_email": "vincent.jauneau@platypus-creation.com", "bugtrack_url": null, "classifiers": [], "description": "Django-like WSGI router.\n\nfrom router.core import router\n\n# Define a controller\ndef hello(request, name, template='Hello %s'):\n \treturn template % name\n\n# Register routes\nrouter.add(r'^/hello/(?P[\\w_-]+)/$', hello)\nrouter.add(r'^/hello/my/name/is/(?P[\\w_-]+)/$', hello, template='Hello my name is %s', name='hello_my_name_is')\n\n# Serve WSGI application\nfrom wsgiref.simple_server import make_server\n\nserver = make_server('localhost', 8000, router)\nserver.serve_forever()\n\n # Reverse controller URL\nrouter.reverse(hello, name='Vincent') # /hello/Vincent/\nrouter.reverse('hello_my_name_is', name='Vincent') # /hello/my/name/is/Vincent/", "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/platypus-creation/platypus-router/", "keywords": "platypus,router,routing,wsgi,django", "license": "Copyright (c) 2011 Vincent Jauneau\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.", "maintainer": null, "maintainer_email": null, "name": "platypus-router", "package_url": "https://pypi.org/project/platypus-router/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/platypus-router/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/platypus-creation/platypus-router/" }, "release_url": "https://pypi.org/project/platypus-router/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "Django like WSGI router", "version": "0.1.2" }, "last_serial": 796327, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "1b719a94b2ecc25a856d3d6c52961dc1", "sha256": "37aa771e329546c3de6b48d8bdacd13dd43b662a18b796baa964f3d17375b46c" }, "downloads": -1, "filename": "platypus-router-0.1.0.tar.gz", "has_sig": false, "md5_digest": "1b719a94b2ecc25a856d3d6c52961dc1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3498, "upload_time": "2011-12-29T15:59:26", "url": "https://files.pythonhosted.org/packages/f7/d4/56d47308519b10dfa98d4642e25526057fc49d379532e061f92a4206b0b9/platypus-router-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "7f07aa9e36eac5915d5a72589a65d571", "sha256": "163b5822859b58749729952ac857e4582f951497977b8866d914e78eead1906d" }, "downloads": -1, "filename": "platypus-router-0.1.1.tar.gz", "has_sig": false, "md5_digest": "7f07aa9e36eac5915d5a72589a65d571", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3602, "upload_time": "2011-12-30T10:51:16", "url": "https://files.pythonhosted.org/packages/1a/2b/33e4797f57f377640c28782fa37c0f85faa41a8847169ab867ca6e49e034/platypus-router-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "bca9fffc75355dd065a7ce0ee7b155c7", "sha256": "7950aa25d1e049be2af38218e84fe5f14ee0feaf8fd7407eb63c9033b0697bc6" }, "downloads": -1, "filename": "platypus-router-0.1.2.tar.gz", "has_sig": false, "md5_digest": "bca9fffc75355dd065a7ce0ee7b155c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4069, "upload_time": "2011-12-30T16:04:12", "url": "https://files.pythonhosted.org/packages/15/d8/ceaf1c897805a17730b0677d3bdd4483dcad3a5211ed8641532d3d4b7b68/platypus-router-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bca9fffc75355dd065a7ce0ee7b155c7", "sha256": "7950aa25d1e049be2af38218e84fe5f14ee0feaf8fd7407eb63c9033b0697bc6" }, "downloads": -1, "filename": "platypus-router-0.1.2.tar.gz", "has_sig": false, "md5_digest": "bca9fffc75355dd065a7ce0ee7b155c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4069, "upload_time": "2011-12-30T16:04:12", "url": "https://files.pythonhosted.org/packages/15/d8/ceaf1c897805a17730b0677d3bdd4483dcad3a5211ed8641532d3d4b7b68/platypus-router-0.1.2.tar.gz" } ] }