{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "Provides profiling results through console.log.\nHome-page: https://github.com/chromano/profilelog\nMaintainer: Carlos H. Romano\nMaintainer-email: chromano@gmail.com\nLicense: UNKNOWN\nDescription: # ProfileLogMiddleware\n \n This is a WSGI middleware which will profile the request and embed it in the response. The default behavior is to embed the profiling data via `console.table`, right before the closing `` tag. The result is that you can then see the information by opening devtools (should work on both Chrome and Firefox):\n \n ![](https://github.com/chromano/profilelog-middleware/blob/master/sample.png \"Chrome devtools\")\n \n ## Installation\n \n pip install profilelog-middleware\n \n ## Usage\n \n Simply wrap your WSGI application with `profilelog.middleware.ProfileLogMiddleware`. Below is an example for the `wsgi.py` file provided with Django projects:\n \n from django.core.wsgi import get_wsgi_application\n from profilelog.middleware import ProfileLogMiddleware\n \n application = ProfileLogMiddleware(get_wsgi_application())\n \n ## Config\n \n You can specify to the middleware how far you want to go by specifying the number of function calls to display. Example:\n \n application = ProfileLogMiddleware(get_wsgi_application(), limit=5)\n \n The default value for `limit` is 25, which should suffice for most usecases.\n \n ## Caveats\n \n If you have a compression middleware in place (for example, a gzip middleware), make sure to disable it or run it after `ProfileLogMiddleware`, otherwise the default profile logging function won't be able to identify the content.\n \nPlatform: UNKNOWN\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "profilelog-middleware", "package_url": "https://pypi.org/project/profilelog-middleware/", "platform": "", "project_url": "https://pypi.org/project/profilelog-middleware/", "project_urls": null, "release_url": "https://pypi.org/project/profilelog-middleware/0.0.2/", "requires_dist": null, "requires_python": "", "summary": "WSGI middleware for logging profiling data.", "version": "0.0.2" }, "last_serial": 3703639, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "2ce788ed28321731058f5f0bfcce5cd9", "sha256": "0db0adc859e440b946bc23aa1bc93adb09c583d8d13595ac41a5349327a34e64" }, "downloads": -1, "filename": "profilelog_middleware-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2ce788ed28321731058f5f0bfcce5cd9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5048, "upload_time": "2018-03-25T12:07:34", "url": "https://files.pythonhosted.org/packages/18/6b/a163123cd067b5c2ce39ebc20a7830744f962bcbd1f53f6c4fc63b412f51/profilelog_middleware-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a29bea58b1d2391f1114485e3e80a382", "sha256": "8161a5e2bab2c1687c403b68e7239e883217534f2f97f81c48e298fdc8da5eb8" }, "downloads": -1, "filename": "profilelog-middleware-0.0.1.tar.gz", "has_sig": false, "md5_digest": "a29bea58b1d2391f1114485e3e80a382", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3116, "upload_time": "2018-03-25T12:07:35", "url": "https://files.pythonhosted.org/packages/1a/05/d7be648c7ff7cae439c7c1ec1e1701de355774147420154127765d5343f4/profilelog-middleware-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "0b6c621701a83ea4715a428d3f507f38", "sha256": "8e8a635dbea794e4da66d88b7b75c475fdc5d1e8389bfe761fb798bb3645ef03" }, "downloads": -1, "filename": "profilelog_middleware-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0b6c621701a83ea4715a428d3f507f38", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5162, "upload_time": "2018-03-25T14:34:24", "url": "https://files.pythonhosted.org/packages/68/8f/4961cae252b655853a7183bd4a1e76638477de9b4e85b45f1d1096771dee/profilelog_middleware-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "01b2472327aec614e7b401f5548635bc", "sha256": "7b86515a303eb728000c212820a6fc486ef4e1129898b9af9e4847c0bcfb4c5b" }, "downloads": -1, "filename": "profilelog-middleware-0.0.2.tar.gz", "has_sig": false, "md5_digest": "01b2472327aec614e7b401f5548635bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3182, "upload_time": "2018-03-25T14:34:25", "url": "https://files.pythonhosted.org/packages/31/fd/98b987711a055eb4b8472e0642e8824bf2d99e1edfa311d4fc31366d0dac/profilelog-middleware-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0b6c621701a83ea4715a428d3f507f38", "sha256": "8e8a635dbea794e4da66d88b7b75c475fdc5d1e8389bfe761fb798bb3645ef03" }, "downloads": -1, "filename": "profilelog_middleware-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0b6c621701a83ea4715a428d3f507f38", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5162, "upload_time": "2018-03-25T14:34:24", "url": "https://files.pythonhosted.org/packages/68/8f/4961cae252b655853a7183bd4a1e76638477de9b4e85b45f1d1096771dee/profilelog_middleware-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "01b2472327aec614e7b401f5548635bc", "sha256": "7b86515a303eb728000c212820a6fc486ef4e1129898b9af9e4847c0bcfb4c5b" }, "downloads": -1, "filename": "profilelog-middleware-0.0.2.tar.gz", "has_sig": false, "md5_digest": "01b2472327aec614e7b401f5548635bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3182, "upload_time": "2018-03-25T14:34:25", "url": "https://files.pythonhosted.org/packages/31/fd/98b987711a055eb4b8472e0642e8824bf2d99e1edfa311d4fc31366d0dac/profilelog-middleware-0.0.2.tar.gz" } ] }