{ "info": { "author": "Rick Mak", "author_email": "rick.mak@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "Pyramid helper to create restful route.\n\nUsing URL Dispatch and class base view.\n\n\nAt pyramid booststrap\n\n```\ndef main(global_config, **settings):\n config = Configurator(settings=settings)\n config.include(\"pyramid_resources\")\n```\n\nRegistering route with `AppView`\n```\n config.add_rest_route('app', 'apps', AppView,\n members={\n 'basic': 'edit',\n 'messaging': 'view',\n 'admin': 'edit',\n },\n collections={\n 'paid': 'admin',\n },\n factory=RootFactory)\n\n```\n\nA simple `AppView` implementation\n\n```\nclass AppView(RestView):\n\n renderers = {\n 'basic': '/app/basic.mako'\n }\n\n def basic(self):\n return {\n 'location': 'Render at basic.mako'\n }\n\n @view_config(\n route_name='paid_app',\n renderer='json',\n custom_predicates=(allowed_extension(*['.json']),)\n permission='read')\n def paid(self):\n return {\n \"message\": \"using json renderer on json extension\"\n }\n\n\n```", "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/rickmak/pyramid_rest_route", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "pyramid_rest_route", "package_url": "https://pypi.org/project/pyramid_rest_route/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyramid_rest_route/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/rickmak/pyramid_rest_route" }, "release_url": "https://pypi.org/project/pyramid_rest_route/0.2/", "requires_dist": null, "requires_python": null, "summary": "Simple helper for creating rest route and view", "version": "0.2" }, "last_serial": 1913076, "releases": { "0.1": [], "0.2": [ { "comment_text": "", "digests": { "md5": "44d36485366e262c04ebd2e13cac285b", "sha256": "b912688578bfd23636e26463d23a03b36c13df4286c718e529a40d43024ba87e" }, "downloads": -1, "filename": "pyramid_rest_route-0.2.tar.gz", "has_sig": false, "md5_digest": "44d36485366e262c04ebd2e13cac285b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3190, "upload_time": "2016-01-20T10:56:01", "url": "https://files.pythonhosted.org/packages/b9/f7/d5def3b230446da6d5c97db8dc489232f567dc0a4dfcd8b0e4ade40b50ad/pyramid_rest_route-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "44d36485366e262c04ebd2e13cac285b", "sha256": "b912688578bfd23636e26463d23a03b36c13df4286c718e529a40d43024ba87e" }, "downloads": -1, "filename": "pyramid_rest_route-0.2.tar.gz", "has_sig": false, "md5_digest": "44d36485366e262c04ebd2e13cac285b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3190, "upload_time": "2016-01-20T10:56:01", "url": "https://files.pythonhosted.org/packages/b9/f7/d5def3b230446da6d5c97db8dc489232f567dc0a4dfcd8b0e4ade40b50ad/pyramid_rest_route-0.2.tar.gz" } ] }