{ "info": { "author": "Bruno Carlin", "author_email": "bruno@bcarlin.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Database", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "==================================\r\nFlask Debug Toolbar MongoDB Panel\r\n==================================\r\n\r\n:Info: An extension panel for Matt Good's `Flask-DebugToolbar`_ that adds\r\n MongoDB debugging information\r\n:Author: Bruno Carlin (http://github.com/bcarlin, http://twitter.com/brunocarlin)\r\n\r\n.. _Flask-DebugToolbar: http://flask-debugtoolbar.rtfd.org/\r\n\r\nHistory\r\n=======\r\n\r\nThis is a port of the MongoDB addon to the Django Debug Toolbar written\r\nby Harry Marr (http://github.com/hmarr, http://twitter.com/harrymarr).\r\n\r\nThere existed another port (https://github.com/cenkalti/flask-debug-toolbar-mongo)\r\nthat was neither up-to-date nor operational (there are still imports\r\nfrom django).\r\n\r\nHere is a clean port that I intend to maintain current with Harry Marr's\r\noriginal work, and occasionnally augment with new features if needed.\r\n\r\nAll the thanks go to Harry!\r\n\r\n.. warning::\r\n This package is still at an early stage. While it works, it is not\r\n yet complete and its reports are not exhaustives.\r\n\r\n If you want to help improve it, you are the most welcome to do so.\r\n Just fork the repository on\r\n `Github `__ and\r\n send your pull requests !\r\n\r\nSetup\r\n=====\r\n\r\nFirst, you need to get the package. Install it with pip:\r\n\r\n::\r\n\r\n pip install flask-debugtoolbar-mongo\r\n\r\nSomewhere after you've set ``app.debug = True`` and before ``app.run``, you need\r\nto specify the ``flask_debugtoolbar`` panels that you want to use and include\r\n``'flask_debugtoolbar_mongo.panels.MongoDebugPanel'`` in that list.\r\n\r\nFor example, here's a small flask app with the panel installed and with line\r\nprofiling enabled for the `hello_world`::\r\n\r\n from flask import Flask\r\n app = Flask(__name__)\r\n\r\n import flask_debugtoolbar\r\n\r\n @app.route('/')\r\n def hello_world():\r\n return 'Hello World')\r\n\r\n if __name__ == '__main__':\r\n app.debug = True\r\n\r\n # Specify the debug panels you want\r\n app.config['DEBUG_TB_PANELS'] = [\r\n 'flask_debugtoolbar.panels.versions.VersionDebugPanel',\r\n 'flask_debugtoolbar.panels.timer.TimerDebugPanel',\r\n 'flask_debugtoolbar.panels.headers.HeaderDebugPanel',\r\n 'flask_debugtoolbar.panels.request_vars.RequestVarsDebugPanel',\r\n 'flask_debugtoolbar.panels.template.TemplateDebugPanel',\r\n 'flask_debugtoolbar.panels.sqlalchemy.SQLAlchemyDebugPanel',\r\n 'flask_debugtoolbar.panels.logger.LoggingPanel',\r\n 'flask_debugtoolbar.panels.profiler.ProfilerDebugPanel',\r\n # Add the MongoDB panel\r\n 'flask_debugtoolbar_mongo.panel.MongoDebugPanel',\r\n ]\r\n toolbar = flask_debugtoolbar.DebugToolbarExtension(app)\r\n\r\n app.run()\r\n\r\n\r\n``Flask-debugtoolbar-mongo`` accepts the following configration options::\r\n\r\n app.config['DEBUG_TB_MONGO'] = {\r\n 'SHOW_STACKTRACES' = True\r\n 'HIDE_FLASK_FROM_STACKTRACES' = True\r\n }\r\n\r\n``SHOW_STACKTRACES``\r\n Obtaining stack traces can slow down queries significantly. You can\r\n turn them off by setting this option to ``False``.\r\n``HIDE_FLASK_FROM_STACKTRACES``\r\n Hides Flask calls from the stacktrace.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bcarlin/flask-debugtoolbar-mongo", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "Flask-DebugToolbar-Mongo", "package_url": "https://pypi.org/project/Flask-DebugToolbar-Mongo/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Flask-DebugToolbar-Mongo/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/bcarlin/flask-debugtoolbar-mongo" }, "release_url": "https://pypi.org/project/Flask-DebugToolbar-Mongo/0.1/", "requires_dist": null, "requires_python": null, "summary": "MongoDB panel for the Flask Debug Toolbar", "version": "0.1" }, "last_serial": 784279, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "faa55c528337a3f4db59069e540993f6", "sha256": "a680d5042444fb10a2f511ea5613f00932f51f0c899c5cfe91a3b473658cb1a4" }, "downloads": -1, "filename": "Flask-DebugToolbar-Mongo-0.1.tar.gz", "has_sig": false, "md5_digest": "faa55c528337a3f4db59069e540993f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8652, "upload_time": "2013-03-22T11:55:46", "url": "https://files.pythonhosted.org/packages/5d/ea/77abd58676ad76ee41ff881597f6e8e88796944940ec06eb22d0c9033a4b/Flask-DebugToolbar-Mongo-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "faa55c528337a3f4db59069e540993f6", "sha256": "a680d5042444fb10a2f511ea5613f00932f51f0c899c5cfe91a3b473658cb1a4" }, "downloads": -1, "filename": "Flask-DebugToolbar-Mongo-0.1.tar.gz", "has_sig": false, "md5_digest": "faa55c528337a3f4db59069e540993f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8652, "upload_time": "2013-03-22T11:55:46", "url": "https://files.pythonhosted.org/packages/5d/ea/77abd58676ad76ee41ff881597f6e8e88796944940ec06eb22d0c9033a4b/Flask-DebugToolbar-Mongo-0.1.tar.gz" } ] }