{ "info": { "author": "Pradeek", "author_email": "jpradeek@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "=============\nDjango Snoopy\n=============\n\nDjango Snoopy is a pluggable profiling tool for Django Apps\n\n-----------\nQuick Start\n-----------\n\n1. Add `snoopy.middleware.SnoopyProfilerMiddleware` to MIDDLEWARE_CLASSES\n2. (Optional) Configure Output if you don't want to use the default log file output\n3. Profile your code!\n\n--------------------------\nSetting Custom Attributes:\n--------------------------\nIn case you want to track something specific to your app, you can do this:\n\nfrom snoopy.request import SnoopyRequest\nSnoopyRequest.record_custom_attributes({'key': 'value'})\n\nAny value set twice will just be overridden.\n\nIMPORTANT: The data passed into this MUST be a JSON serializable dictionary.\n\n\n---------\nSettings:\n---------\nYou can set these in your Django settings.py file to configure how Snoopy works\n\nSNOOPY_COLLECT_SQL_QUERIES: True\n - Track all SQL queries done via the Django ORM\n\nSNOOPY_OUTPUT_CLASS: 'snoopy.output.LogOutput'\n - Set the class that defines how the collected info is processed at the end of the request. The options available out of the box are:\n\n - `snoopy.output.LogOutput`: This will create a file for each request in the folder specified by `SNOOPY_LOG_OUTPUT_DIR`. Defaults to the root folder of the app\n\n - `snoopy.output.HTTPOutput`: This will make a JSON formatted HTTP POST with the data in `SNOOPY_HTTP_OUTPUT_URL`\n\n - You can write your own Output class. All you need to do is to extend `snoopy.output.OutputBase` and implement the `save_request_data` method.\n\n\n SNOOPY_USE_CPROFILE: False\n - Set to True if you want profiling\n\n SNOOPY_CPROFILE_SHOW_ALL_FUNCTIONS: True\n - If this option is set to False, django-snoopy will take the parent directory of the main django settings file as the project root and will only list items in the cProfile output that are files under this directory (your actual app code)\n\n\n DEFAULT_USE_BUILTIN_PROFILER': False\n - Set to True if you want to use the built-in profiler/tracer\n\n DEFAULT_BUILTIN_PROFILER_SHOW_ALL_FUNCTIONS': True\n - Like the cProfile option counterpart, allows you to specify if you want data about all or just your own code.", "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/Pradeek/django-snoopy", "keywords": null, "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "django-snoopy", "package_url": "https://pypi.org/project/django-snoopy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-snoopy/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Pradeek/django-snoopy" }, "release_url": "https://pypi.org/project/django-snoopy/0.0.2/", "requires_dist": null, "requires_python": null, "summary": "Simple Request/SQL profiling for Django", "version": "0.0.2" }, "last_serial": 1992206, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "d5def999a989865ba5484e84c68ea8d9", "sha256": "e633cc8fc642dc947966e5e4f4beddce332ac557f4644d3ab71b5e3c640a3d24" }, "downloads": -1, "filename": "django-snoopy-0.0.1.tar.gz", "has_sig": false, "md5_digest": "d5def999a989865ba5484e84c68ea8d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4644, "upload_time": "2016-03-05T14:59:38", "url": "https://files.pythonhosted.org/packages/f7/df/0e403f86dd06697f38c440eb8273cf632be73b2f60359983c0b73927e643/django-snoopy-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "d99e0d535547d0416b32b1de3edbc553", "sha256": "78632ba986066de14028af39021b96ec25de7d9b9f6f41d831a06d2d7736ae55" }, "downloads": -1, "filename": "django-snoopy-0.0.2.tar.gz", "has_sig": false, "md5_digest": "d99e0d535547d0416b32b1de3edbc553", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6580, "upload_time": "2016-03-06T15:10:29", "url": "https://files.pythonhosted.org/packages/61/79/d0d24dff34c996743b878242117a60ac47ec0b7ea0650b43e06bd3076db8/django-snoopy-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d99e0d535547d0416b32b1de3edbc553", "sha256": "78632ba986066de14028af39021b96ec25de7d9b9f6f41d831a06d2d7736ae55" }, "downloads": -1, "filename": "django-snoopy-0.0.2.tar.gz", "has_sig": false, "md5_digest": "d99e0d535547d0416b32b1de3edbc553", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6580, "upload_time": "2016-03-06T15:10:29", "url": "https://files.pythonhosted.org/packages/61/79/d0d24dff34c996743b878242117a60ac47ec0b7ea0650b43e06bd3076db8/django-snoopy-0.0.2.tar.gz" } ] }