{ "info": { "author": "Martin Martimeo", "author_email": "martin@martimeo.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "tornado-menumaker\n=================\n\nInspired by tornroutes a simple menu api\n\nCopyright license\n=================\n\ntornado-menumaker is licensed under the GNU Affero General Public License, for more information see the LICENSE.txt.\n\nUsage\n=====\n\nDefine Handler using decorator:\n\n import tornado.web\n from tornado_menumaker import page, index, subpage, routes\n\n @page('/news', 'News', icon='icon-news')\n class NewsHandler(tornado.web.RequestHandler):\n\n @index\n def get(self):\n pass\n\n @subpage('/show/(\\d+)')\n def show(self, id):\n pass\n\n @subpage('/new', 'Neue News')\n def new(self):\n pass\n\n @new.post\n def new(self):\n pass\n\n @subpage('/archive', 'Archiv')\n def archive(self):\n pass\n\n a = tornado.web.Application(routes())\n\nTo get the menu structure you can then use:\n\n from tornado_menumaker import items\n\n for level, url, caption, sub_routes, kwargs in items():\n ...\n for level, url, caption, subsub_routes, kwargs in sub_routes:\n ...\n\n This will yield for the above example:\n 0, '/news', 'News', , {icon: 'icon_news'}\n 1, '/news/new', 'Neue News', , {}\n 1, '/news/archive', 'Archiv', , {}", "description_content_type": null, "docs_url": null, "download_url": "http://pypi.python.org/pypi/Tornado-Menumaker", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/MartinMartimeo/tornado-menumaker", "keywords": null, "license": "GNU AGPLv3+", "maintainer": null, "maintainer_email": null, "name": "Tornado-Menumaker", "package_url": "https://pypi.org/project/Tornado-Menumaker/", "platform": "any", "project_url": "https://pypi.org/project/Tornado-Menumaker/", "project_urls": { "Download": "http://pypi.python.org/pypi/Tornado-Menumaker", "Homepage": "https://github.com/MartinMartimeo/tornado-menumaker" }, "release_url": "https://pypi.org/project/Tornado-Menumaker/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "simple tornado menus", "version": "0.1.2" }, "last_serial": 1224708, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "02c762b5c7e44e0afc1aa40ac53487ff", "sha256": "2c8feb2a36d6426159a95bf9b9a7bda98ed8464b79b9715d7028c164fadf8ff3" }, "downloads": -1, "filename": "Tornado-Menumaker-0.1.1.tar.gz", "has_sig": false, "md5_digest": "02c762b5c7e44e0afc1aa40ac53487ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3522, "upload_time": "2014-09-15T10:38:02", "url": "https://files.pythonhosted.org/packages/f6/8c/c92d90e8749413bc2efc746fd8bbeab13a92a154dcc99d45eb2c724ebe15/Tornado-Menumaker-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "495ba62cef3180f7d5b4d4affd0fa79d", "sha256": "21bedb80aaf293504e2e658ce8adcd49365b1d00fd7d483437c7caed7273dbdd" }, "downloads": -1, "filename": "Tornado-Menumaker-0.1.2.tar.gz", "has_sig": false, "md5_digest": "495ba62cef3180f7d5b4d4affd0fa79d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3727, "upload_time": "2014-09-15T10:42:38", "url": "https://files.pythonhosted.org/packages/38/e3/a0384168d7e3df585fbb2e1519aaf48a046f01b6d7549b9d08003ce25f46/Tornado-Menumaker-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "495ba62cef3180f7d5b4d4affd0fa79d", "sha256": "21bedb80aaf293504e2e658ce8adcd49365b1d00fd7d483437c7caed7273dbdd" }, "downloads": -1, "filename": "Tornado-Menumaker-0.1.2.tar.gz", "has_sig": false, "md5_digest": "495ba62cef3180f7d5b4d4affd0fa79d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3727, "upload_time": "2014-09-15T10:42:38", "url": "https://files.pythonhosted.org/packages/38/e3/a0384168d7e3df585fbb2e1519aaf48a046f01b6d7549b9d08003ce25f46/Tornado-Menumaker-0.1.2.tar.gz" } ] }