{ "info": { "author": "Eran Kampf", "author_email": "eran@ekampf.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7" ], "description": "===============================\nWebApp2 RequestParser\n===============================\n\n.. image:: https://travis-ci.org/ekampf/webapp2_restful.svg\n :target: https://travis-ci.org/ekampf/webapp2_restful\n\n.. image:: https://coveralls.io/repos/ekampf/webapp2_restful/badge.svg?branch=master&service=github\n :target: https://coveralls.io/github/ekampf/webapp2_restful?branch=master\n\n.. image:: https://img.shields.io/pypi/v/webapp2_restful.svg\n :target: https://pypi.python.org/pypi/webapp2_restful\n\n\nThe *webapp2_restful* library is a Request parsing interface inspired by `restful-flask's request parser `_.\n\nIts interface is modeled after the `argparse `_ interface.\n\nIts goal is to provide a uniform access to any variable on the webapp2.Request object and allowing handlers to provide a sort of \"contract\" where they\nspecify the parameters they expect to be called with - making code easier to read and understand.\n\n* Free software: BSD license\n* Documentation: https://webapp2_restful.readthedocs.org.\n\nBasic Argument Parsing\n----------------------\n\nHere\u2019s a simple example of the request parser.\nIt looks for two arguments in the webapp2.Request's *json* and *params* properties: one of type int, and the other of type str:\n\n.. code::\n\n from webapp2_restful.parser import RequestParser\n\n parser = RequestParser()\n parser.add_argument('rate', type=int, help='Rate cannot be converted')\n parser.add_argument('name', type=str)\n args = parser.parse_args(self.request)\n\n\nSpecial Google AppEngine Arguments\n----------------------------------\n\n.. code::\n\n from webapp2_restful.parser import RequestParser\n from webapp2_restful.arguments_ndb import EntityIDArgument\n\n parser = RequestParser()\n parser.add_argument('store_id', type=EntityIDArgument(Store), dest='store')\n args = parser.parse_args(self.request)\n\n # args.store is a Store instance\n print(args.store)\n\n\n\n\nHistory\n-------\n\n0.1.0 (2015-01-11)\n---------------------\n\n* First release on PyPI.", "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/ekampf/webapp2_restful", "keywords": "webapp2_restful", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "webapp2_restful", "package_url": "https://pypi.org/project/webapp2_restful/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/webapp2_restful/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ekampf/webapp2_restful" }, "release_url": "https://pypi.org/project/webapp2_restful/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "A Request parsing interface designed to provide simple and uniform access to any variable on the webapp2.Request object in Webapp2", "version": "0.1.1" }, "last_serial": 1935134, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "82ec7c8e9c04d644602931c3e335ce24", "sha256": "2259444ddf789eaf43c8ef8fb287f5f14f76e6223d0c57549a0e3c3ddf18c72e" }, "downloads": -1, "filename": "webapp2_restful-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "82ec7c8e9c04d644602931c3e335ce24", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6456, "upload_time": "2016-02-02T07:05:01", "url": "https://files.pythonhosted.org/packages/4f/7d/b316628887bf7fb6b1050cc11709ad90578385c11b8051336f6a3e289b27/webapp2_restful-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "578dfb1d1f49c593885db11b0f372663", "sha256": "09bccb46a5043a94d324552733a240bb8e590d8c883cf101c76907c935ddbfd8" }, "downloads": -1, "filename": "webapp2_restful-0.1.0.tar.gz", "has_sig": false, "md5_digest": "578dfb1d1f49c593885db11b0f372663", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18983, "upload_time": "2016-02-02T07:04:54", "url": "https://files.pythonhosted.org/packages/9c/e3/acc4af8fe7ee46cd081217ff98874bad7e638ffac3a751dd7b9acc2c8576/webapp2_restful-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "ec01870615d2bb67ae61c8cdce711f90", "sha256": "dfbafb0c4ec4c2e0483fd639fae42dd0225bf57e005d47115329276d6c30981f" }, "downloads": -1, "filename": "webapp2_restful-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ec01870615d2bb67ae61c8cdce711f90", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6338, "upload_time": "2016-02-02T07:21:25", "url": "https://files.pythonhosted.org/packages/b6/cb/38782844971c3e17d88deed68fcaf256237b320810473d0644c84d3fdedf/webapp2_restful-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "50b868905b1b99e6eebc17e4972adef2", "sha256": "ace7db3f20f4bae8eca698339688f4b35d15877da48328e474c961dd4629c609" }, "downloads": -1, "filename": "webapp2_restful-0.1.1.tar.gz", "has_sig": false, "md5_digest": "50b868905b1b99e6eebc17e4972adef2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18851, "upload_time": "2016-02-02T07:21:17", "url": "https://files.pythonhosted.org/packages/83/b4/809089b92da5cab40218d3e771a64a1b820c9c7147f1312273d9d15a71a4/webapp2_restful-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ec01870615d2bb67ae61c8cdce711f90", "sha256": "dfbafb0c4ec4c2e0483fd639fae42dd0225bf57e005d47115329276d6c30981f" }, "downloads": -1, "filename": "webapp2_restful-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ec01870615d2bb67ae61c8cdce711f90", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6338, "upload_time": "2016-02-02T07:21:25", "url": "https://files.pythonhosted.org/packages/b6/cb/38782844971c3e17d88deed68fcaf256237b320810473d0644c84d3fdedf/webapp2_restful-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "50b868905b1b99e6eebc17e4972adef2", "sha256": "ace7db3f20f4bae8eca698339688f4b35d15877da48328e474c961dd4629c609" }, "downloads": -1, "filename": "webapp2_restful-0.1.1.tar.gz", "has_sig": false, "md5_digest": "50b868905b1b99e6eebc17e4972adef2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18851, "upload_time": "2016-02-02T07:21:17", "url": "https://files.pythonhosted.org/packages/83/b4/809089b92da5cab40218d3e771a64a1b820c9c7147f1312273d9d15a71a4/webapp2_restful-0.1.1.tar.gz" } ] }