{ "info": { "author": "Gregory Ghez", "author_email": "gregory.ghez@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# flask_applicationinsights\n\nFlask extension for Microsoft Azure Application Insights.\n\nMake your Flask application able to send tracking information to an Application Insights Azure component.\n\n[![Build Status](https://travis-ci.org/gghez/flask_applicationinsights.svg?branch=master)](https://travis-ci.org/gghez/flask_applicationinsights)\n[![codecov](https://codecov.io/gh/gghez/flask_applicationinsights/branch/master/graph/badge.svg)](https://codecov.io/gh/gghez/flask_applicationinsights)\n\n## Dependencies\n\n- flask>=1.0.2\n- applicationinsights==0.11.6\n\n> If you are encountering locale issues with application insights, please check this hack: https://github.com/Azure/azure-cli-shell/issues/63\n\n## Usage\n\nRetrieve package from pypi:\n\n```\npip install flask_applicationinsights\n```\n\n> Instrumentation key can be provided programmatically as well as by environment variable or flask configuration key.\nKey name is `APPINSIGHTS_INSTRUMENTATION_KEY`.\n\n### Basic\n\nWill track all requests (succeeded or failed) to your application insight referenced by its instrumentation key.\n\n```python\nfrom flask import Flask\nfrom flask_applicationinsights import ApplicationInsights\n\napp = Flask(__name__)\n\ninsight = ApplicationInsights(instrumentation_key='')\ninsight.init_app(app)\n\n@app.route('/')\ndef index():\n return 'HIT'\n\napp.run()\n```\n\n### Advanced\n\nYou can also add custom properties or measurements to each tracked request by using special decorators.\n\n```python\n...\n\ninsight = ApplicationInsights(...)\n...\n\n@insight.properties\ndef custom_properties(req: Request, resp: Response):\n return {\n 'req_pragma': req.headers.get('Pragma'),\n 'resp_charset': resp.charset\n }\n```\n\n## Contribution\n\nNot open yet due to initial WIP.", "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/gghez/flask_applicationinsights", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "Flask-ApplicationInsights", "package_url": "https://pypi.org/project/Flask-ApplicationInsights/", "platform": "any", "project_url": "https://pypi.org/project/Flask-ApplicationInsights/", "project_urls": { "Homepage": "https://github.com/gghez/flask_applicationinsights" }, "release_url": "https://pypi.org/project/Flask-ApplicationInsights/0.2.6/", "requires_dist": null, "requires_python": "", "summary": "Microsoft Azure Application Insights integration for Flask.", "version": "0.2.6" }, "last_serial": 4208493, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "0c559d8a2ec8ea40bf6f67963d01f599", "sha256": "807998af70452820f59c18487669ec694cfce2e65a7d19b77f5673445435de36" }, "downloads": -1, "filename": "Flask_ApplicationInsights-0.1.0-py3.6.egg", "has_sig": false, "md5_digest": "0c559d8a2ec8ea40bf6f67963d01f599", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 4618, "upload_time": "2018-08-24T21:10:59", "url": "https://files.pythonhosted.org/packages/64/fa/28c6d22481af7e557fdda0498283e8abc3e1726e6d7c9a68f0396e959df2/Flask_ApplicationInsights-0.1.0-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "0e5fc69e9027e7596f9f3fb51f9d900c", "sha256": "764027ada6856061b06f39b0a42d5d574a577a93d3ee2dd7cdca18432dd1fef2" }, "downloads": -1, "filename": "Flask-ApplicationInsights-0.1.0.tar.gz", "has_sig": false, "md5_digest": "0e5fc69e9027e7596f9f3fb51f9d900c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2581, "upload_time": "2018-08-24T21:34:16", "url": "https://files.pythonhosted.org/packages/18/92/870ca1d349fa14f4acbc94c4b3d560c62d5af6d8367a3f22bcc31cd723da/Flask-ApplicationInsights-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e1c9f99c58b255940553c11581cebff9", "sha256": "edca52cfbbdbf4b6e08f18e4e8f56fd4a9626d720cd22150924efdc92334723e" }, "downloads": -1, "filename": "Flask_ApplicationInsights-0.1.1-py3.6.egg", "has_sig": false, "md5_digest": "e1c9f99c58b255940553c11581cebff9", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 4951, "upload_time": "2018-08-24T21:22:01", "url": "https://files.pythonhosted.org/packages/49/49/cf74ecf82147bd4b2c56d8e91035eba285b2e5aa2bca13155cc4638e137e/Flask_ApplicationInsights-0.1.1-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "93a4495e7ff3828461b2c5ba079978ac", "sha256": "8db9c1b4c55e70e663c10996e278b2b31aa3b91d2228476de2e6d5e6716fd004" }, "downloads": -1, "filename": "Flask_ApplicationInsights-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "93a4495e7ff3828461b2c5ba079978ac", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 3069, "upload_time": "2018-08-24T21:30:30", "url": "https://files.pythonhosted.org/packages/6b/66/d1ddd9c724ccd621124bb1b8e3ddbf62fbf84399badc2760f0e1e4078fe6/Flask_ApplicationInsights-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "48c3001e959cca272f8c07a5d4784eed", "sha256": "0a57214e6cb52c24d9d07d2f790cf1f39ac7a347bded44970d1d92898f9ec106" }, "downloads": -1, "filename": "Flask-ApplicationInsights-0.1.1.tar.gz", "has_sig": false, "md5_digest": "48c3001e959cca272f8c07a5d4784eed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2800, "upload_time": "2018-08-24T21:30:29", "url": "https://files.pythonhosted.org/packages/98/8a/5500e8e38ae711695ae70b0d92209d4ebba6bfd9e7dddf39f6433a74bbd2/Flask-ApplicationInsights-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "bc6c9d26896718f8c819af83db412269", "sha256": "463586ae7122361cab5e4871189f7b867706435ca850bc0ed24117c867ec2f04" }, "downloads": -1, "filename": "Flask_ApplicationInsights-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "bc6c9d26896718f8c819af83db412269", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 3072, "upload_time": "2018-08-25T09:48:36", "url": "https://files.pythonhosted.org/packages/90/b0/1f4a07358df08b745ebada90e4c6877c3178fbbfbe08412e2f55efe6d09a/Flask_ApplicationInsights-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a01529568776acbd178b8c05802962c8", "sha256": "ccc1692fc53273b066171f2a6cc2473d6a22aee6ec7dc2e594bb6853197d5108" }, "downloads": -1, "filename": "Flask-ApplicationInsights-0.1.2.tar.gz", "has_sig": false, "md5_digest": "a01529568776acbd178b8c05802962c8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2802, "upload_time": "2018-08-25T09:48:34", "url": "https://files.pythonhosted.org/packages/a1/ff/f383bd5ead30ba009fcb3ffe06a0a1e349c9e5637dc04519631a7b73b61d/Flask-ApplicationInsights-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "c4f820e5551f84605a6232b894e49560", "sha256": "b5ffe8ce91338a02431afa02f8ff957633882fb2f39b01b28b68484806e35e9d" }, "downloads": -1, "filename": "Flask_ApplicationInsights-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "c4f820e5551f84605a6232b894e49560", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 3784, "upload_time": "2018-08-25T11:22:24", "url": "https://files.pythonhosted.org/packages/e2/9a/380d62edbf26a75846e42fec313e578b04e6bfec4f8e310df546c4aa1400/Flask_ApplicationInsights-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9d07b8201307eb05301c4999be2b0845", "sha256": "9dab2857e4fe5743f9a13a03190f35a89e4ed43c8b80e9ada1ced48847446854" }, "downloads": -1, "filename": "Flask-ApplicationInsights-0.2.0.tar.gz", "has_sig": false, "md5_digest": "9d07b8201307eb05301c4999be2b0845", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3481, "upload_time": "2018-08-25T11:22:22", "url": "https://files.pythonhosted.org/packages/96/99/22d4909156664000e93ed0ba68eb7ee0818dd277e0d5bbec7c7f4e40727d/Flask-ApplicationInsights-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "8b6cdb445156d9e4060eaf9ee5a1ac68", "sha256": "1e8118277314f555f5d3680326f5b9e1b2b82b08045e810cb1b9eb65c2e7995e" }, "downloads": -1, "filename": "Flask_ApplicationInsights-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "8b6cdb445156d9e4060eaf9ee5a1ac68", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 4027, "upload_time": "2018-08-26T10:29:43", "url": "https://files.pythonhosted.org/packages/bf/5a/9478e0a81a92c480da6f22a5435b3183441d3373fc8bbca327561a33aedb/Flask_ApplicationInsights-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ff5b591db61d6931279bf4610e877be5", "sha256": "82fd0305c7d521c9ff7dbfe7839baaf1c5f60433283a209823304e6381578414" }, "downloads": -1, "filename": "Flask-ApplicationInsights-0.2.1.tar.gz", "has_sig": false, "md5_digest": "ff5b591db61d6931279bf4610e877be5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4429, "upload_time": "2018-08-26T10:29:41", "url": "https://files.pythonhosted.org/packages/dc/96/a0989de7ed30a85621fbd20eb7e6836fbadeded6847ef8ae95b65102f649/Flask-ApplicationInsights-0.2.1.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "c0bff919d0c2e86c195a7667705d7878", "sha256": "388ab70a7edb901dabd6c564c48ee481bf766458c9828ace137ae01305b9981a" }, "downloads": -1, "filename": "Flask_ApplicationInsights-0.2.3-py3-none-any.whl", "has_sig": false, "md5_digest": "c0bff919d0c2e86c195a7667705d7878", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 4027, "upload_time": "2018-08-26T10:33:46", "url": "https://files.pythonhosted.org/packages/1d/bf/40f9bff867b43d50ec6b522e37273d397e111bac5fcd7262290d5a86c3f7/Flask_ApplicationInsights-0.2.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3a806f5dcd6ff9a2bf6f87871d386e5e", "sha256": "68e7f13202c4db6b5531d6f717bd280875d8483286b1b84270b18a4870c6c806" }, "downloads": -1, "filename": "Flask-ApplicationInsights-0.2.3.tar.gz", "has_sig": false, "md5_digest": "3a806f5dcd6ff9a2bf6f87871d386e5e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4504, "upload_time": "2018-08-26T10:33:45", "url": "https://files.pythonhosted.org/packages/a1/d9/78daafa60484451b656c924ca185998c76395f24d883fd5f74219a0e66a5/Flask-ApplicationInsights-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "a403086e5853a69fe7a2e324d4fb93d0", "sha256": "fae04bfd27fe4374ceb76d1e8b8283f1a61d587e028563f617b20c7979fd5d4b" }, "downloads": -1, "filename": "Flask_ApplicationInsights-0.2.4-py3-none-any.whl", "has_sig": false, "md5_digest": "a403086e5853a69fe7a2e324d4fb93d0", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 4026, "upload_time": "2018-08-26T10:34:46", "url": "https://files.pythonhosted.org/packages/7a/48/aebcc9174b71f9477cb23c5e18b3c49eec3f25a3e2af0063ab32ba9249a6/Flask_ApplicationInsights-0.2.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d7fc304b7fc605f4f8090c035352dbe6", "sha256": "162f4f7055846c1e6fba33563809fa99e06246cd86128773877622006982727c" }, "downloads": -1, "filename": "Flask-ApplicationInsights-0.2.4.tar.gz", "has_sig": false, "md5_digest": "d7fc304b7fc605f4f8090c035352dbe6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4504, "upload_time": "2018-08-26T10:34:44", "url": "https://files.pythonhosted.org/packages/fa/20/d26522c3b24a64762d44df2b9c6fff9c47a0a010b6ec9b63acf9e70d4da5/Flask-ApplicationInsights-0.2.4.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "483285160f55147f9ddd622b3b8efcb0", "sha256": "10ce04a8143c9b1d25a5513bfc1d98fbfcf1b2657bbaa266609d1e29f41e1c81" }, "downloads": -1, "filename": "Flask-ApplicationInsights-0.2.5.tar.gz", "has_sig": false, "md5_digest": "483285160f55147f9ddd622b3b8efcb0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4516, "upload_time": "2018-08-26T14:41:42", "url": "https://files.pythonhosted.org/packages/f0/a0/bee79e2984027c7fecd4a2ee3204073bb8a42ef84b370f486f89585473d7/Flask-ApplicationInsights-0.2.5.tar.gz" } ], "0.2.6": [ { "comment_text": "", "digests": { "md5": "d934f5a26293b9c3e21ce328d53c3e7d", "sha256": "e1ef0cba5e72c9962e2c425322235648c1cd0612dae5c72d3d95dd584a403dbe" }, "downloads": -1, "filename": "Flask-ApplicationInsights-0.2.6.tar.gz", "has_sig": false, "md5_digest": "d934f5a26293b9c3e21ce328d53c3e7d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4516, "upload_time": "2018-08-26T14:54:57", "url": "https://files.pythonhosted.org/packages/8e/a1/dd536ff2ec4f1bc2f577cf5fda800e7279b5ba157aa1f1d723276588134b/Flask-ApplicationInsights-0.2.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d934f5a26293b9c3e21ce328d53c3e7d", "sha256": "e1ef0cba5e72c9962e2c425322235648c1cd0612dae5c72d3d95dd584a403dbe" }, "downloads": -1, "filename": "Flask-ApplicationInsights-0.2.6.tar.gz", "has_sig": false, "md5_digest": "d934f5a26293b9c3e21ce328d53c3e7d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4516, "upload_time": "2018-08-26T14:54:57", "url": "https://files.pythonhosted.org/packages/8e/a1/dd536ff2ec4f1bc2f577cf5fda800e7279b5ba157aa1f1d723276588134b/Flask-ApplicationInsights-0.2.6.tar.gz" } ] }