{ "info": { "author": "Atsushi Odagiri", "author_email": "aodagx@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Pyramid", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3 :: Only" ], "description": "===============================\nrebecca.annotationmapper\n===============================\n\n``rebecca.annotationmapper`` is viewmapper for pyramid web application.\nThat processes annotations of view arguments.\n\nINSTALL\n===============================\n\n::\n\n $ pip install rebecca.annotationmapper\n\n\nUSAGE\n===============================\n\n``rebecca.annotationmapper`` provides include fook.\n\n::\n\n config.include('rebecca.annotationmapper')\n\nAnnotate arguments using ``rebecca.annotationmapper.annotations``\n\n::\n\n def hello(context, request, nane: FromMatchDict):\n request.response.text = \"Hello, {name}\".format(name=name)\n return request.response\n\n config.add_route(\"hello\", \"/hello/{name}\")\n config.add_view(hello, route_name=\"hello\")\n\nThe argument ``name`` annotated by ``FromMatchDict`` is\ngiven value from ``request.matchdict['name']`` by ``rebecca.annotationmapper.AnnotationViewMapper``.\n\nFor example, you access 'http://localhost/hello/aodag' and you get message 'Hello, aodag'.\n\nAnnotations\n===============================\n\nFromMatchDict\n-------------------------------\n\nprovides value from ``request.matchdict``.\n\nFromParam\n-------------------------------\n\nprovides value from ``request.params``.\n\nFromSession\n-------------------------------\n\nprovides value from ``request.session``.\n\nFromHeader\n-------------------------------\n\nprovides value from ``request.headers``.\n\nFromAttr\n---------------------------------\n\nprovides value from attribute of ``request``.\n\nCHANGES\n====================\n\n0.1\n---------------------\n\n- first release", "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/rebeccaframework/rebecca.annotationmapper", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "rebecca.annotationmapper", "package_url": "https://pypi.org/project/rebecca.annotationmapper/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/rebecca.annotationmapper/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/rebeccaframework/rebecca.annotationmapper" }, "release_url": "https://pypi.org/project/rebecca.annotationmapper/0.1/", "requires_dist": null, "requires_python": null, "summary": "annotation view mapper for pyramid", "version": "0.1" }, "last_serial": 1628771, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "d50cb1271e9b9be7434ef5958473aec1", "sha256": "036ba4f60acd479135e5822d05881d085ee117d140ad5e25bad8dd7da90c70b9" }, "downloads": -1, "filename": "rebecca.annotationmapper-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d50cb1271e9b9be7434ef5958473aec1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5931, "upload_time": "2015-07-11T07:45:08", "url": "https://files.pythonhosted.org/packages/1e/6e/ebb212970019a42a28a68e3013a78fd6cf589e06ebdbddcd8f73334d68e1/rebecca.annotationmapper-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fdf91777c9661dae1ccc283cdb57b477", "sha256": "d705833ea4dd221776a5ae7f726d9e4931aeacb6548af03c8e3084ee89281e5c" }, "downloads": -1, "filename": "rebecca.annotationmapper-0.1.zip", "has_sig": false, "md5_digest": "fdf91777c9661dae1ccc283cdb57b477", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7343, "upload_time": "2015-07-11T07:45:13", "url": "https://files.pythonhosted.org/packages/92/a4/944dadecb1891e6fbdfc1b6ebec128088a883ef4ccc364fab230351db537/rebecca.annotationmapper-0.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d50cb1271e9b9be7434ef5958473aec1", "sha256": "036ba4f60acd479135e5822d05881d085ee117d140ad5e25bad8dd7da90c70b9" }, "downloads": -1, "filename": "rebecca.annotationmapper-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d50cb1271e9b9be7434ef5958473aec1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5931, "upload_time": "2015-07-11T07:45:08", "url": "https://files.pythonhosted.org/packages/1e/6e/ebb212970019a42a28a68e3013a78fd6cf589e06ebdbddcd8f73334d68e1/rebecca.annotationmapper-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fdf91777c9661dae1ccc283cdb57b477", "sha256": "d705833ea4dd221776a5ae7f726d9e4931aeacb6548af03c8e3084ee89281e5c" }, "downloads": -1, "filename": "rebecca.annotationmapper-0.1.zip", "has_sig": false, "md5_digest": "fdf91777c9661dae1ccc283cdb57b477", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7343, "upload_time": "2015-07-11T07:45:13", "url": "https://files.pythonhosted.org/packages/92/a4/944dadecb1891e6fbdfc1b6ebec128088a883ef4ccc364fab230351db537/rebecca.annotationmapper-0.1.zip" } ] }