{ "info": { "author": "Alexander Lushnikov", "author_email": "alexander.aka.alegz@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "graphene-sentry\n-------\n\nThis package is based on \n[graphene-django-sentry](https://pypi.org/project/graphene-django-sentry/)\n([Github page](https://github.com/phalt/graphene-django-sentry))\npackage.\n\nMain focus of package was to fix issue with sentry reporting with \n[graphene_django](https://github.com/graphql-python/graphene-django) package.\n\nI think this package can be extended to handle nore cases.\n\nSurvey is needed if you faced similar problem with sentry report with other \nframeworks or graphene implementations let me know via issues.\n\n*Capture Sentry exceptions in Graphene views*\n\nWhen using [Graphene Django](https://github.com/graphql-python/graphene-django),\nyou sometimes want to raise exceptions and capture them in the API.\n\nHowever, Graphene Django eats the raised exceptions and you won't see it\nin Sentry! \ud83d\ude2d\n\nThis package thinly wraps the normal GraphQLView with a handler that\ndeals with Sentry errors properly.\n\nSo the results:\n\n1. Sentry will show the true exceptions.\n2. Graphene will continue to work like normal.\n\nWorks with:\n\n- Python 3.6+\n- Django 2.1+\n- graphene-django 2.2+\n\n![image](https://img.shields.io/pypi/v/graphene-sentry.svg%0A%20%20%20%20%20:target:%20https://pypi.org/project/graphene-sentry/)\n\n![image](https://img.shields.io/pypi/pyversions/graphene_sentry.svg%0A%20%20%20%20%20:target:%20https://pypi.org/project/graphene_sentry/)\n\n![image](https://img.shields.io/pypi/l/graphene-sentry.svg%0A%20%20%20%20%20:target:%20https://pypi.org/project/graphene-sentry/)\n\n![image](https://img.shields.io/pypi/status/graphene_sentry.svg%0A%20%20%20%20%20:target:%20https://pypi.org/project/graphene_sentry/)\n\n![image](https://circleci.com/gh/phalt/graphene-sentry/tree/master.svg?style=svg%0A%20%20%20%20%20:target:%20https://circleci.com/gh/phalt/graphene-sentry/tree/master)\n\nInstalling the project is easy:\n\n``` {.sourceCode .bash}\npip install graphene-sentry\n```\n\nExample without file upload:\n\n``` {.sourceCode .python}\n# urls.py\n\nfrom .schema import schema\nfrom graphene_sentry.views import SentryGraphQLView\n\nurlpatterns = [\n url(\n r'^graphql',\n csrf_exempt(SentryGraphQLView.as_view(schema=schema)),\n name='graphql',\n ),\n]\n```\n\nExample with graphene file upload:\n\n``` {.sourceCode .python}\n# urls.py\n\nfrom .schema import schema\nfrom graphene_sentry.views import SentryFileUploadGraphQLView\n\nurlpatterns = [\n url(\n r'^graphql',\n csrf_exempt(SentryFileUploadGraphQLView.as_view(schema=schema)),\n name='graphql',\n ),\n]\n```\n\nWhat can I do?\n--------\n\n- Capture Sentry exceptions properly when they are raise-d in Graphene\n views.\n\nStatus\n========\n\ngraphene-sentry is currently stable and suitable for use.\n\nCredits\n=========\nThis package is based on \n[graphene-django-sentry](https://github.com/phalt/graphene-django-sentry)\nauthor [@phalt](https://github.com/phalt)\n\nThis package was created with\n[Cookiecutter](https://github.com/audreyr/cookiecutter).\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://github.com/Alegzander/graphene-sentry", "keywords": "GraphQL graphene sentry", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "graphene-sentry", "package_url": "https://pypi.org/project/graphene-sentry/", "platform": "", "project_url": "https://pypi.org/project/graphene-sentry/", "project_urls": { "Homepage": "https://github.com/Alegzander/graphene-sentry" }, "release_url": "https://pypi.org/project/graphene-sentry/0.4.0/", "requires_dist": [ "graphene-django (>=2.2.0<=2.4.0)", "graphene-file-upload (==1.2.2)", "sentry-sdk (>=0.5.2<=0.10.1)" ], "requires_python": "", "summary": "Capture Sentry exceptions in Graphene views", "version": "0.4.0" }, "last_serial": 5525043, "releases": { "0.4.0": [ { "comment_text": "", "digests": { "md5": "c93298121177bf590f996ea2682e081d", "sha256": "3e62823665cf9c8f1cfc9795c840d8fc3250de053ba699f95d1a38d0ae952341" }, "downloads": -1, "filename": "graphene_sentry-0.4.0-py3-none-any.whl", "has_sig": false, "md5_digest": "c93298121177bf590f996ea2682e081d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4476, "upload_time": "2019-07-12T21:16:05", "url": "https://files.pythonhosted.org/packages/e3/e1/326871a387bbf4dd8555a661cd8446a7335db1099f0b6bd1a5f3f9575fc0/graphene_sentry-0.4.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5a6874e53dcc404d13543f178ecb9ee7", "sha256": "2dff91126bb208fa5c09a43088f88d2428a7d9997dbdb138a6f16b7325c483df" }, "downloads": -1, "filename": "graphene-sentry-0.4.0.tar.gz", "has_sig": false, "md5_digest": "5a6874e53dcc404d13543f178ecb9ee7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3444, "upload_time": "2019-07-12T21:16:07", "url": "https://files.pythonhosted.org/packages/d2/c1/49fe1255a2bdad4018e87a15acc6988906ca32cd3b03fd28756fe077db09/graphene-sentry-0.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c93298121177bf590f996ea2682e081d", "sha256": "3e62823665cf9c8f1cfc9795c840d8fc3250de053ba699f95d1a38d0ae952341" }, "downloads": -1, "filename": "graphene_sentry-0.4.0-py3-none-any.whl", "has_sig": false, "md5_digest": "c93298121177bf590f996ea2682e081d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4476, "upload_time": "2019-07-12T21:16:05", "url": "https://files.pythonhosted.org/packages/e3/e1/326871a387bbf4dd8555a661cd8446a7335db1099f0b6bd1a5f3f9575fc0/graphene_sentry-0.4.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5a6874e53dcc404d13543f178ecb9ee7", "sha256": "2dff91126bb208fa5c09a43088f88d2428a7d9997dbdb138a6f16b7325c483df" }, "downloads": -1, "filename": "graphene-sentry-0.4.0.tar.gz", "has_sig": false, "md5_digest": "5a6874e53dcc404d13543f178ecb9ee7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3444, "upload_time": "2019-07-12T21:16:07", "url": "https://files.pythonhosted.org/packages/d2/c1/49fe1255a2bdad4018e87a15acc6988906ca32cd3b03fd28756fe077db09/graphene-sentry-0.4.0.tar.gz" } ] }