{ "info": { "author": "Aleksey Dalekin", "author_email": "ald@investex.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries" ], "description": "[![Build Status](https://travis-ci.org/adalekin/drf-buzz.svg?branch=master)](https://travis-ci.org/adalekin/drf-buzz) [![Coverage Status](https://coveralls.io/repos/github/adalekin/drf-buzz/badge.svg?branch=master)](https://coveralls.io/github/adalekin/drf-buzz?branch=master)\n\ndrf-buzz\n========\n\nThis is an extension of the [py-buzz](https://github.com/dusktreader/py-buzz)\npackage.\n\nIt adds extra functionality especially for DRF. Predominately, it adds the\nability to jsonify an exception\n\nInstallation\n------------\n\n```\npip install drf-buzz\n```\n\nUsage\n-----\n\nAdd `drf-buzz` exception handler in `settings.py`:\n\n```python\nREST_FRAMEWORK = {\n ...\n 'EXCEPTION_HANDLER': 'drf_buzz.exception_handler'\n ...\n}\n```\n\nUse `py-buzz` exceptions in your DRF viewsets:\n\n```python\nimport drf_buzz\n\nfrom rest_framework import status, viewsets\n\n\nclass MyException(drf_buzz.DRFBuzz):\n status_code = status.BAD_REQUEST\n\n\nclass MyViewSet(viewsets.ViewSet):\n def list(self, request):\n raise MyException('Not implemented yet.')\n```\n\n\nTests\n-----\n\nTo run the test suite execute the following command in package root folder:\n\n```\npython setup.py test\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.mytradingdata.com/common/drf-buzz", "keywords": "drf error py-buzz", "license": "", "maintainer": "", "maintainer_email": "", "name": "drf-buzz", "package_url": "https://pypi.org/project/drf-buzz/", "platform": "", "project_url": "https://pypi.org/project/drf-buzz/", "project_urls": { "Homepage": "https://gitlab.mytradingdata.com/common/drf-buzz" }, "release_url": "https://pypi.org/project/drf-buzz/0.2.1/", "requires_dist": [ "Django (>=1.11)", "djangorestframework (<3.10,>=3.8)", "py-buzz (>=0.3.6)" ], "requires_python": "", "summary": "py-buzz bindings specifically for DRF applications", "version": "0.2.1" }, "last_serial": 5625172, "releases": { "0.2.1": [ { "comment_text": "", "digests": { "md5": "d5bf90cfd67003f05794811eae72e622", "sha256": "52cf0ec38781341feb1236d917454b8fe9016d50fbe82da6bbfa7c6f398b1f28" }, "downloads": -1, "filename": "drf_buzz-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d5bf90cfd67003f05794811eae72e622", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2819, "upload_time": "2019-08-02T16:38:58", "url": "https://files.pythonhosted.org/packages/e9/01/59c219f93b21c428e2b1df08f06b60ae9718aeaae1ae30699b48b8c53576/drf_buzz-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5f73a1858e46245c3d6fe538995efdba", "sha256": "f1e19b65a254e0748f2d8c1e821593b7bb07d0a67bd9fa734fb45b947a42dfc4" }, "downloads": -1, "filename": "drf-buzz-0.2.1.tar.gz", "has_sig": false, "md5_digest": "5f73a1858e46245c3d6fe538995efdba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3129, "upload_time": "2019-08-02T16:39:00", "url": "https://files.pythonhosted.org/packages/74/71/af3f66b492b0c2a32c7aa5b5686a09fea9f908ecac015da03ad0cec66d05/drf-buzz-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d5bf90cfd67003f05794811eae72e622", "sha256": "52cf0ec38781341feb1236d917454b8fe9016d50fbe82da6bbfa7c6f398b1f28" }, "downloads": -1, "filename": "drf_buzz-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d5bf90cfd67003f05794811eae72e622", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2819, "upload_time": "2019-08-02T16:38:58", "url": "https://files.pythonhosted.org/packages/e9/01/59c219f93b21c428e2b1df08f06b60ae9718aeaae1ae30699b48b8c53576/drf_buzz-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5f73a1858e46245c3d6fe538995efdba", "sha256": "f1e19b65a254e0748f2d8c1e821593b7bb07d0a67bd9fa734fb45b947a42dfc4" }, "downloads": -1, "filename": "drf-buzz-0.2.1.tar.gz", "has_sig": false, "md5_digest": "5f73a1858e46245c3d6fe538995efdba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3129, "upload_time": "2019-08-02T16:39:00", "url": "https://files.pythonhosted.org/packages/74/71/af3f66b492b0c2a32c7aa5b5686a09fea9f908ecac015da03ad0cec66d05/drf-buzz-0.2.1.tar.gz" } ] }