{ "info": { "author": "AWeber Communications", "author_email": "api@aweber.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "sprockets.mixins.json_error\n===========================\nHandler mixin for writing JSON errors\n\n|Version| |Downloads| |Status| |Coverage| |License|\n\nInstallation\n------------\n``sprockets.mixins.json_error`` is available on the\n`Python Package Index `_\nand can be installed via ``pip`` or ``easy_install``:\n\n.. code:: bash\n\n pip install sprockets.mixins.json_error\n\nDocumentation\n-------------\nhttps://sprocketsmixinsjson_error.readthedocs.org\n\nRequirements\n------------\n- `sprockets `_\n\nExample\n-------\nThis examples demonstrates how to use ``sprockets.mixins.json_error`` to format\nerrors as JSON.\n\n.. code:: python\n\n from sprockets import mixins.json_error\n from tornado import web\n\n class MyRequestHandler(json_error.JsonErrorMixin,\n web.RequestHandler):\n\n def get(self, *args, **kwargs):\n raise web.HTTPError(404, log_message='My reason')\n\n\nThe response from the handler will automatically be formatted as:\n\n.. code:: json\n\n {\n \"message\": \"My reason\",\n \"type\": \"Not Found\"\n }\n\n\nVersion History\n---------------\nAvailable at https://sprocketsmixinsjson_error.readthedocs.org/en/latest/history.html\n\n.. |Version| image:: https://badge.fury.io/py/sprockets.mixins.json_error.svg?\n :target: http://badge.fury.io/py/sprockets.mixins.json_error\n\n.. |Status| image:: https://travis-ci.org/sprockets/sprockets.mixins.json_error.svg?branch=master\n :target: https://travis-ci.org/sprockets/sprockets.mixins.json_error\n\n.. |Coverage| image:: https://img.shields.io/coveralls/sprockets/sprockets.mixins.json_error.svg?\n :target: https://coveralls.io/r/sprockets/sprockets.mixins.json_error\n\n.. |Downloads| image:: https://pypip.in/d/sprockets.mixins.json_error/badge.svg?\n :target: https://pypi.python.org/pypi/sprockets.mixins.json_error\n\n.. |License| image:: https://pypip.in/license/sprockets.mixins.json_error/badge.svg?\n :target: https://sprocketsmixinsjson_error.readthedocs.org", "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/sprockets/sprockets.mixins.json_error.git", "keywords": null, "license": "Copyright (c) 2014 AWeber Communications\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n * Neither the name of Sprockets nor the names of its\n contributors may be used to endorse or promote products derived from this\n software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\nIN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,\nINDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\nBUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\nLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\nOR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF\nADVISED OF THE POSSIBILITY OF SUCH DAMAGE.", "maintainer": null, "maintainer_email": null, "name": "sprockets.mixins.json_error", "package_url": "https://pypi.org/project/sprockets.mixins.json_error/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/sprockets.mixins.json_error/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/sprockets/sprockets.mixins.json_error.git" }, "release_url": "https://pypi.org/project/sprockets.mixins.json_error/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "Handler mixin for writing JSON errors", "version": "1.0.0" }, "last_serial": 1314540, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "1eb08984aa7d78796f6bb8fc78969d9a", "sha256": "4392b773459466d11ea59b144227b2c2499fb1d26ebc04a0c62998c02ad16b11" }, "downloads": -1, "filename": "sprockets.mixins.json_error-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1eb08984aa7d78796f6bb8fc78969d9a", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7071, "upload_time": "2014-11-20T15:47:20", "url": "https://files.pythonhosted.org/packages/61/4b/994a3405513066edeea64c8f46973a12c9b96fdf94b21e420b7fc1f4b4ba/sprockets.mixins.json_error-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3855bbce48f432e173adf52d24088873", "sha256": "e957906f8671c64ac01b87eb7aba7000542dfd98f6b8bbc13b65699b0075977b" }, "downloads": -1, "filename": "sprockets.mixins.json_error-1.0.0.tar.gz", "has_sig": false, "md5_digest": "3855bbce48f432e173adf52d24088873", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5103, "upload_time": "2014-11-20T15:47:18", "url": "https://files.pythonhosted.org/packages/2d/f8/3b71e9a7763410d9240192ea860ac3ca7fe1b11d06e83a585fd593b5aa90/sprockets.mixins.json_error-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1eb08984aa7d78796f6bb8fc78969d9a", "sha256": "4392b773459466d11ea59b144227b2c2499fb1d26ebc04a0c62998c02ad16b11" }, "downloads": -1, "filename": "sprockets.mixins.json_error-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1eb08984aa7d78796f6bb8fc78969d9a", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7071, "upload_time": "2014-11-20T15:47:20", "url": "https://files.pythonhosted.org/packages/61/4b/994a3405513066edeea64c8f46973a12c9b96fdf94b21e420b7fc1f4b4ba/sprockets.mixins.json_error-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3855bbce48f432e173adf52d24088873", "sha256": "e957906f8671c64ac01b87eb7aba7000542dfd98f6b8bbc13b65699b0075977b" }, "downloads": -1, "filename": "sprockets.mixins.json_error-1.0.0.tar.gz", "has_sig": false, "md5_digest": "3855bbce48f432e173adf52d24088873", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5103, "upload_time": "2014-11-20T15:47:18", "url": "https://files.pythonhosted.org/packages/2d/f8/3b71e9a7763410d9240192ea860ac3ca7fe1b11d06e83a585fd593b5aa90/sprockets.mixins.json_error-1.0.0.tar.gz" } ] }