{ "info": { "author": "Micha\u0142 Jaworski", "author_email": "swistakm@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "Framework :: Django :: 1.4", "Framework :: Django :: 1.5", "Framework :: Django :: 1.6", "Framework :: Django :: 1.7", "Framework :: Django :: 1.8", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "|Build Status| |Coverage Status|\n\nddt-envelope\n============\n\nSimple solution to use django-debug-toolbar with non HTML views. Helps\nin inspecting/profiling endpoints that do not return HTML responses\n(like JSON endpoint).\n\nIt is tested on latest point releases of: ``django1.4``, ``django1.5``,\n``django1.6``, ``django1.7``, ``django1.8`` and each python version that\nis supported by given django releases accordingly (ie. ``python2.6``,\n``python2.7``, ``python3.2``, ``python3.3``, ``python3.4``).\n\nInstalation\n===========\n\n0. Install with pip:\n\n ::\n\n pip install ddt-envelope\n\n1. Add ``ddt-envelope`` to your ``INSTALLED_APPS``:\n\n .. code:: python\n\n\n if DEBUG is True:\n INSTALLED_APPS += (\n 'ddt_envelope',\n )\n\n2. Add ``ddt_envelope`` at the end of your ``urls.py``\n\n .. code:: python\n\n from django.conf import settings\n\n if 'ddt_envelope' in settings.INSTALLED_APPS:\n urlpatterns += patterns('',\n # note: you can use any prefix other than '__ddte__' but make\n # sure it does not conflict with other url patterns\n url(r'^__ddte__/', include('ddt_envelope.urls')),\n )\n\nUsage\n=====\n\nOnce installed and configured just insert ``__ddte__`` or your custom\nprefix after hostname in browser of choice to inspect non-html views\nlike:\n\n::\n\n http://example.com/__ddte__/maybe/json/\n\nCustomizing output\n==================\n\nYou can customize ``ddt_envelope`` responses either by providing custom\ntemplate name for ``ddt_envelope.views.EnvelopeView`` or by overriding\n``ddte/envelope.html`` template. Context variables passed to this\ntempleta are:\n\n- ``path`` - \"real\" path of inspected view\n- ``response`` - response object returned by target inspected view\n- ``headers`` - dictionary of headers available in response returned by\n target inspected view\n- ``content`` - string with raw response content (JSON it will be\n reformated using ``json.dumps(..., indent=4)``)\n\n.. |Build Status| image:: https://travis-ci.org/swistakm/ddt-envelope.svg\n :target: https://travis-ci.org/swistakm/ddt-envelope\n.. |Coverage Status| image:: https://coveralls.io/repos/swistakm/ddt-envelope/badge.svg\n :target: https://coveralls.io/r/swistakm/ddt-envelope", "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/swistakm/ddt-envelope", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "ddt-envelope", "package_url": "https://pypi.org/project/ddt-envelope/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ddt-envelope/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/swistakm/ddt-envelope" }, "release_url": "https://pypi.org/project/ddt-envelope/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Simple helper for inspecting non-html views with django-debug-toolbar", "version": "0.1.0" }, "last_serial": 1603448, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "09b11a10c41b77be421ed80ef0134497", "sha256": "9f6284ccaa863d65fe4d41603182cd5c5e8ffd0ec107f6911f0857bc7f8cd4e8" }, "downloads": -1, "filename": "ddt-envelope-0.0.2.tar.gz", "has_sig": false, "md5_digest": "09b11a10c41b77be421ed80ef0134497", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2728, "upload_time": "2014-07-16T15:25:25", "url": "https://files.pythonhosted.org/packages/81/d2/96d50348a372f8ed105a131a08b010c7df2a0988941487c8bd9a7f525d00/ddt-envelope-0.0.2.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "eb83cf249ca119a35832a5cd663f8afd", "sha256": "8e7a3baa3bd2392dac03bde96b157dd62e4f954d5655e4718aaaddd9f501e2b0" }, "downloads": -1, "filename": "ddt-envelope-0.1.0.tar.gz", "has_sig": false, "md5_digest": "eb83cf249ca119a35832a5cd663f8afd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3864, "upload_time": "2015-06-23T15:33:44", "url": "https://files.pythonhosted.org/packages/28/ed/6f54279a9e30dcb27bf64cdbb9ed686c0314a8427f553ac78390d3ecc56b/ddt-envelope-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "eb83cf249ca119a35832a5cd663f8afd", "sha256": "8e7a3baa3bd2392dac03bde96b157dd62e4f954d5655e4718aaaddd9f501e2b0" }, "downloads": -1, "filename": "ddt-envelope-0.1.0.tar.gz", "has_sig": false, "md5_digest": "eb83cf249ca119a35832a5cd663f8afd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3864, "upload_time": "2015-06-23T15:33:44", "url": "https://files.pythonhosted.org/packages/28/ed/6f54279a9e30dcb27bf64cdbb9ed686c0314a8427f553ac78390d3ecc56b/ddt-envelope-0.1.0.tar.gz" } ] }