{ "info": { "author": "Spacebox(\u76d2\u5b50\u7a7a\u95f4) Team", "author_email": "spacebox@spacebox.fun", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "### Flask-Performance\n\nA Flask extension to monitoring every **REAL** api request and collect it's performance in **REAL**-time.\u2728 \ud83c\udf70 \u2728\n\n\n#### 1\u3001Install by pip\n\n> pip install flask-performance\n\n#### 2\u3001Generate DSN\n\nGo to https://status.spacebox.fun, sign up or login. Create a new project or new team (if you are working in a company, we highly recommend you create Team first and put every project into the Team afterward)\n\nAnd after suceccfully create a project, you are given a DSN url, which is the API your project performance data will send to.\n\ne.g.\n\n> https://metrics.spacebox.fun/v1/collector/c5b35bc078844a59a15dd506e08f3ae6\n\n\n#### 3\u3001Setup & configuration in your Flask project\n\n```python\n\nfrom flask import Flask\nfrom flask_performance import PerformanceCollector\n\napp = Flask(__name__)\napp.config['METRIC_DSN'] = 'https://metrics.spacebox.fun/v1/collector/c5b35bc078844a59a15dd506e08f3ae6'\n\npc = PerformanceCollector(app)\n\n# or by init_app() when you use factory pattern to creat flask app\napp = create_app()\napp.config['METRIC_DSN'] = 'https://metrics.spacebox.fun/v1/collector/c5b35bc078844a59a15dd506e08f3ae6'\n\npc = PerformanceCollector()\npc.init_app(app)\n\n```\n\nYou can also put **METRIC_DSN** into your project `config.py` file and use Flask's `from_pyfile`.\n\n\nin your `config.py` file\n\n> METRIC_DSN = 'https://metrics.spacebox.fun/v1/collector/c5b35bc078844a59a15dd506e08f3ae6'\n\nin your project `app.py` file\n\n> app.from_pyfile('config')\n\n\n**And, That's ALL**, just go to your https://status.spacebox.fun platform to check your project all API performance in real-time.\n\n\n#### 4\u3001Performance problem\n\nChance is that you will ask: Will this performance collector affect your project's performance ?\n\nthe short answer is: yes.\n\n**BUT**, the affects is limit maximus to `500ms`. We set the timeout to `500ms` when send the performance data to the API.\n\nAnd we implemented this API in a asynchronous way, which means when we receive your project performance data every time we will response immediately and throw the save performance data task to a task queue (which is Celery). In most case, the API will reponse under 100ms.\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/SpaceBoxer/flask-performance", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "Flask-Performance", "package_url": "https://pypi.org/project/Flask-Performance/", "platform": "", "project_url": "https://pypi.org/project/Flask-Performance/", "project_urls": { "Homepage": "https://github.com/SpaceBoxer/flask-performance" }, "release_url": "https://pypi.org/project/Flask-Performance/0.0.6/", "requires_dist": [ "flask", "requests" ], "requires_python": "", "summary": "A Flask extension to monitoring every REAL api request and collect it's performance in REAL-time.", "version": "0.0.6" }, "last_serial": 5153301, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "c14b48701934371555f7ca6a25acf3e2", "sha256": "e9c4f44e3225c609427e1d0e314ab23acf954a1401834a26da5fdd6475c0eb13" }, "downloads": -1, "filename": "Flask_Performance-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "c14b48701934371555f7ca6a25acf3e2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3295, "upload_time": "2019-04-09T13:45:38", "url": "https://files.pythonhosted.org/packages/ea/a8/90b7d0b0e99950cb53b01cfda2713ac1d6080a4808b0f410d722c8d58efb/Flask_Performance-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bec152b8fedb3a0fc080b5692a2c88cf", "sha256": "94de752cf8ff5d02f040ecc535bc48f5808d70280b03f6716ca4af60680f7397" }, "downloads": -1, "filename": "Flask-Performance-0.0.2.tar.gz", "has_sig": false, "md5_digest": "bec152b8fedb3a0fc080b5692a2c88cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1660, "upload_time": "2019-04-09T13:45:40", "url": "https://files.pythonhosted.org/packages/60/ec/4af80134bf96aff856db2742cb2670c7f273a7dd484df308b5e6a5953fa3/Flask-Performance-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "b79cb86e1366d6375450cbee838964dc", "sha256": "2e2269504c48625655c6c0f19a5ad4ce8987d47c5339c45fd8261f3697f06899" }, "downloads": -1, "filename": "Flask_Performance-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "b79cb86e1366d6375450cbee838964dc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4040, "upload_time": "2019-04-17T03:39:57", "url": "https://files.pythonhosted.org/packages/cc/65/f71075ee29b59a110aa25b1b4878cb0c066aad8a24e097c30b983730b47c/Flask_Performance-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "178e652148dd3344858af9e8ec2cc0ef", "sha256": "796819fccae3e31c8a3d68bdb9a0e22a2c299f2dadcd5e3ecb9b640b53c84b2a" }, "downloads": -1, "filename": "Flask-Performance-0.0.3.tar.gz", "has_sig": false, "md5_digest": "178e652148dd3344858af9e8ec2cc0ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2577, "upload_time": "2019-04-17T03:39:59", "url": "https://files.pythonhosted.org/packages/14/c0/6bec0ad2119c016108276c52bcc3003a6970586167de0806fa42f2c3c3cf/Flask-Performance-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "7dc19f39ab5f8032539e54a6519119ca", "sha256": "b33fd28fab17f8a696c8ae684f96f1d22cf89da79ebd8d681b75346d5dd7c204" }, "downloads": -1, "filename": "Flask_Performance-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "7dc19f39ab5f8032539e54a6519119ca", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4167, "upload_time": "2019-04-17T03:47:55", "url": "https://files.pythonhosted.org/packages/df/82/a1c03e3c904177ffd4f510aaa29e8770969c445d340323c385a016c9f7cb/Flask_Performance-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f72fb87bfcbda3ac0914f4bed5e0e907", "sha256": "0e37c29e8097b00bdc40067324175df28851c297e8d48911bcd83950082582f8" }, "downloads": -1, "filename": "Flask-Performance-0.0.4.tar.gz", "has_sig": false, "md5_digest": "f72fb87bfcbda3ac0914f4bed5e0e907", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2705, "upload_time": "2019-04-17T03:47:57", "url": "https://files.pythonhosted.org/packages/e9/d5/5870179f1c6295520933b35b53084675960c19bcf896646d2b654894d730/Flask-Performance-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "9591fe29a1a005e4438a70b096a8379d", "sha256": "a072db4323157fe76e75b5f97a836bf65544e4688404c9a765f6da8da88b8815" }, "downloads": -1, "filename": "Flask_Performance-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "9591fe29a1a005e4438a70b096a8379d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4168, "upload_time": "2019-04-17T04:24:51", "url": "https://files.pythonhosted.org/packages/f0/36/0397a3b37943af5e7035ba390934483e140e07fab40326ca698675c134d3/Flask_Performance-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4d03160fd5f2b190eb75843b10f86014", "sha256": "2dcd77d0c932132d8579f536f213b703414836d3b43559febb2dabd30f8d2982" }, "downloads": -1, "filename": "Flask-Performance-0.0.5.tar.gz", "has_sig": false, "md5_digest": "4d03160fd5f2b190eb75843b10f86014", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2708, "upload_time": "2019-04-17T04:24:52", "url": "https://files.pythonhosted.org/packages/cb/b0/235cd7f45cea1b1988437c5524bcffd3b9f4924a44529987847106ae98c7/Flask-Performance-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "d6a97060d32cae3cbb720b6982e5095f", "sha256": "79990f5ddc2f9335337e815e01c63085211aa2e8598a2fa32e0ef44d2dbc340f" }, "downloads": -1, "filename": "Flask_Performance-0.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "d6a97060d32cae3cbb720b6982e5095f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4190, "upload_time": "2019-04-17T05:00:53", "url": "https://files.pythonhosted.org/packages/9a/b0/20c60117715273273b2336d4023b3aa9d72c3453d352470f2de8ceca1419/Flask_Performance-0.0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "70f5ea2e5d0ed9bbcf4659ec5635147d", "sha256": "81843d60b608742d826585cc548cf1ad668894fd2b097721373dd6af405358c2" }, "downloads": -1, "filename": "Flask-Performance-0.0.6.tar.gz", "has_sig": false, "md5_digest": "70f5ea2e5d0ed9bbcf4659ec5635147d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2727, "upload_time": "2019-04-17T05:00:55", "url": "https://files.pythonhosted.org/packages/73/97/2b85322214fc44c408426641dc3d1049abd8159d456fe6e3ee76c708f18d/Flask-Performance-0.0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d6a97060d32cae3cbb720b6982e5095f", "sha256": "79990f5ddc2f9335337e815e01c63085211aa2e8598a2fa32e0ef44d2dbc340f" }, "downloads": -1, "filename": "Flask_Performance-0.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "d6a97060d32cae3cbb720b6982e5095f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4190, "upload_time": "2019-04-17T05:00:53", "url": "https://files.pythonhosted.org/packages/9a/b0/20c60117715273273b2336d4023b3aa9d72c3453d352470f2de8ceca1419/Flask_Performance-0.0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "70f5ea2e5d0ed9bbcf4659ec5635147d", "sha256": "81843d60b608742d826585cc548cf1ad668894fd2b097721373dd6af405358c2" }, "downloads": -1, "filename": "Flask-Performance-0.0.6.tar.gz", "has_sig": false, "md5_digest": "70f5ea2e5d0ed9bbcf4659ec5635147d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2727, "upload_time": "2019-04-17T05:00:55", "url": "https://files.pythonhosted.org/packages/73/97/2b85322214fc44c408426641dc3d1049abd8159d456fe6e3ee76c708f18d/Flask-Performance-0.0.6.tar.gz" } ] }