{ "info": { "author": "bjorn", "author_email": "bp@datakortet.no", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": ".. coding: utf-8\r\n\r\n==========================\r\ndjango-sqlprint-middleware\r\n==========================\r\n\r\nMiddleware that pretty prints Django's sql statements.\r\n\r\n.. image:: https://raw.githubusercontent.com/thebjorn/django-sqlprint-middleware/master/docs/_static/sample-output.png\r\n\r\nInstallation\r\n------------\r\nInstall from PyPI::\r\n\r\n pip install django-sqlprint-middleware\r\n\r\nthen add it to the `MIDDLEWARE` settings in your `settings.py` file::\r\n\r\n MIDDLEWARE = (\r\n ...\r\n 'django_sqlprint_middleware.SqlPrintMiddleware',\r\n ...\r\n )\r\n\r\n(Use `MIDDLEWARE_CLASSES` in older Djangos.)\r\n\r\nThis middleware is not order sensitive so you can put it at any position in\r\nthe list of classes.\r\n\r\n\r\nSettings\r\n--------\r\nThe following settings control the behavior (all of these have defaults).\r\n\r\nDEBUG or TESTING\r\n Either of these need to be True for the middleware to run.\r\n\r\nSQLPRINT_MIDDLEWARE\r\n Set to False to skip middleware without removing it.\r\n\r\nX_DB_HITS\r\n Set to false to prevent db hits being sent in the response header 'X-DB-hits'\r\n\r\nSQLPRINT_MAX_QUERIES\r\n Raise an exception if the number of queries for a view is greater than this.\r\n Default is 1200 (zero means no check).\r\n\r\nSQLPRINT_MIN_QUERIES\r\n For less output you can set this to the number of queries a view can make before\r\n queries are printed (default is zero).\r\n\r\n\r\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/thebjorn/django-sqlprint-middleware", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-sqlprint-middleware", "package_url": "https://pypi.org/project/django-sqlprint-middleware/", "platform": "", "project_url": "https://pypi.org/project/django-sqlprint-middleware/", "project_urls": { "Homepage": "https://github.com/thebjorn/django-sqlprint-middleware" }, "release_url": "https://pypi.org/project/django-sqlprint-middleware/0.1.3/", "requires_dist": [ "pygments-pprint-sql", "Django" ], "requires_python": "", "summary": "Pretty print Django's SQL statments", "version": "0.1.3" }, "last_serial": 4280631, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "24f16c131ca5a70c93188f477890153e", "sha256": "e5ca41c2789cec7a09db831836f10690111a0fd1fb737670fbcabd2c6b34a426" }, "downloads": -1, "filename": "django_sqlprint_middleware-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "24f16c131ca5a70c93188f477890153e", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5963, "upload_time": "2018-08-25T14:31:11", "url": "https://files.pythonhosted.org/packages/6e/17/865fbfebdb932eeef1a5c6769f2808cdcd983cbbbd76a089125951371deb/django_sqlprint_middleware-0.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f24acc2745f3d99b1348b121381d5c2f", "sha256": "0e92ff43725df3a909338237d0599124e90e7413c1b474c851e659e3148c6cdf" }, "downloads": -1, "filename": "django-sqlprint-middleware-0.1.0.tar.gz", "has_sig": false, "md5_digest": "f24acc2745f3d99b1348b121381d5c2f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2691, "upload_time": "2018-08-25T14:31:13", "url": "https://files.pythonhosted.org/packages/f0/c2/b6c3e46e017037d4be38ba8e3eadf2b99a6e894545365545c5577572c621/django-sqlprint-middleware-0.1.0.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "0e6fafdcddc8eeb2985451ccdd1942c4", "sha256": "38f882d52243571b2012c3e77bb72d218eeb8e61c5ac4fc7314e587c9ca561d2" }, "downloads": -1, "filename": "django_sqlprint_middleware-0.1.2-py2-none-any.whl", "has_sig": false, "md5_digest": "0e6fafdcddc8eeb2985451ccdd1942c4", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6049, "upload_time": "2018-08-25T19:50:11", "url": "https://files.pythonhosted.org/packages/37/95/7046746d7e4485f6ca2ea6f234f136ceccd8c3863fae2767e3107fadf964/django_sqlprint_middleware-0.1.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9a1c8af0baa9b374bdb147d4adfbe38b", "sha256": "577c2733baf6f7d9a8ced8f2600d41525e87c5680a1fd63c80d268edc841538f" }, "downloads": -1, "filename": "django-sqlprint-middleware-0.1.2.tar.gz", "has_sig": false, "md5_digest": "9a1c8af0baa9b374bdb147d4adfbe38b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2775, "upload_time": "2018-08-25T19:50:12", "url": "https://files.pythonhosted.org/packages/ef/b5/38e90d50d3ed6ab5ee3bc864d38dbaf49ad2a34ccb4944f25be2de5f2891/django-sqlprint-middleware-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "132280d098052fc39a65b15e06df4671", "sha256": "d26e81010378d6257a9950fd1b7ef6ebf8547c2cec8f4de118c1f2bf95e8e085" }, "downloads": -1, "filename": "django_sqlprint_middleware-0.1.3-py2-none-any.whl", "has_sig": false, "md5_digest": "132280d098052fc39a65b15e06df4671", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6161, "upload_time": "2018-09-17T19:40:17", "url": "https://files.pythonhosted.org/packages/8a/8d/b8e37b8e212fdb081322268eae4c291aeb4c8b3708f9374ed89d85c2a682/django_sqlprint_middleware-0.1.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "66f2b81a408e4185ff1224eb8a755b73", "sha256": "14511cd2788c43fda32f3beb8f1dba3347971083720d8221428df724ecfc7795" }, "downloads": -1, "filename": "django-sqlprint-middleware-0.1.3.tar.gz", "has_sig": false, "md5_digest": "66f2b81a408e4185ff1224eb8a755b73", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2845, "upload_time": "2018-09-17T19:40:19", "url": "https://files.pythonhosted.org/packages/41/8d/2aec8278941bd746ab7f57601c8ffe9813dc5546328ae0f4e9deb89551e4/django-sqlprint-middleware-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "132280d098052fc39a65b15e06df4671", "sha256": "d26e81010378d6257a9950fd1b7ef6ebf8547c2cec8f4de118c1f2bf95e8e085" }, "downloads": -1, "filename": "django_sqlprint_middleware-0.1.3-py2-none-any.whl", "has_sig": false, "md5_digest": "132280d098052fc39a65b15e06df4671", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6161, "upload_time": "2018-09-17T19:40:17", "url": "https://files.pythonhosted.org/packages/8a/8d/b8e37b8e212fdb081322268eae4c291aeb4c8b3708f9374ed89d85c2a682/django_sqlprint_middleware-0.1.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "66f2b81a408e4185ff1224eb8a755b73", "sha256": "14511cd2788c43fda32f3beb8f1dba3347971083720d8221428df724ecfc7795" }, "downloads": -1, "filename": "django-sqlprint-middleware-0.1.3.tar.gz", "has_sig": false, "md5_digest": "66f2b81a408e4185ff1224eb8a755b73", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2845, "upload_time": "2018-09-17T19:40:19", "url": "https://files.pythonhosted.org/packages/41/8d/2aec8278941bd746ab7f57601c8ffe9813dc5546328ae0f4e9deb89551e4/django-sqlprint-middleware-0.1.3.tar.gz" } ] }