{ "info": { "author": "Christopher Welborn", "author_email": "cj@welbornprod.com", "bugtrack_url": null, "classifiers": [ "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "PrintDebug\n==========\n\nA small debug printing module that prints extra info like filenames,\nfunction names, and line numbers. It can also recursively print objects\nsuch as lists, tuples, and dicts.\n\nMore useful stuff may be added in the future.\n\nExample Usage:\n--------------\n\nDebug printing:\n~~~~~~~~~~~~~~~\n\n.. code:: python\n\n from printdebug import debug\n def myfunction():\n debug('Hello from myfunction.')\n\n myfunction()\n\nOutput:\n^^^^^^^\n\n::\n\n myfile.py: 3 myfunction(): Hello from myfunction.\n\nFormatting:\n~~~~~~~~~~~\n\nThe default format for line information is\n``'{filename}:{lineno:>5} {name:>25}(): '``, but can be set with the\n``fmt`` arg:\n\n.. code:: python\n\n debug('Test', fmt='#{lineno} in function {name}, file: {filename}')\n\nThe format can be set once, and used every time with a ``DebugPrinter``\ninstance, or by overriding ``printdebug.default_format``:\n\n.. code:: python\n\n from printdebug import DebugPrinter\n\n dp = DebugPrinter(fmt='{filename}: {name}():#{lineno}')\n dp.debug('Test')\n\nThere is a default colorized format, using the\n```colr`` `__ module.\n\n.. code:: python\n\n from printdebug import DebugColrPrinter\n dp = DebugColrPrinter()\n dp.debug('Test')\n\nOutput:\n^^^^^^^\n\n.. figure:: https://welbornprod.com/dl/static/media/img/printdebug-debugcolrprinter.png\n :alt: printdebug.DebugColrPrinter\n\n printdebug.DebugColrPrinter\n\nPrint an object:\n~~~~~~~~~~~~~~~~\n\n.. code:: python\n\n from printdebug import printobject\n\n o = {'key1': {'subkey1': 'value1', 'subkey2': 'value2'}}\n printobject(o)\n\nOutput:\n^^^^^^^\n\n::\n\n key1:\n subkey1:\n value1\n subkey2:\n value2\n\nSilencing debug prints:\n~~~~~~~~~~~~~~~~~~~~~~~\n\n``debug()`` and ``DebugPrinter()`` can be silenced with\n``debug_enable(False)``:\n\n.. code:: python\n\n from printdebug import debug, debug_enable\n\n debug('This will print.')\n\n debug_enable(False)\n debug('This will not.')\n\n debug_enable()\n debug('This will print now.')\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/PrintDebug/", "keywords": "python module library 2 3 print debug", "license": "LICENSE.txt", "maintainer": "", "maintainer_email": "", "name": "PrintDebug", "package_url": "https://pypi.org/project/PrintDebug/", "platform": "", "project_url": "https://pypi.org/project/PrintDebug/", "project_urls": { "Homepage": "http://pypi.python.org/pypi/PrintDebug/" }, "release_url": "https://pypi.org/project/PrintDebug/0.3.5/", "requires_dist": null, "requires_python": "", "summary": "A small debug printing module that prints extra info like filenames, function names, and line numbers. It can also recursively print lists, tuples, and dicts.\n", "version": "0.3.5" }, "last_serial": 5081432, "releases": { "0.0.1": [], "0.0.2": [ { "comment_text": "", "digests": { "md5": "f14f57f3cfd14aea744c3b70faaca461", "sha256": "6c4a608695ffe115ef63d2b23b1ea4d4deadd49ddef542d8c785266b88b69b14" }, "downloads": -1, "filename": "PrintDebug-0.0.2.tar.gz", "has_sig": false, "md5_digest": "f14f57f3cfd14aea744c3b70faaca461", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14707, "upload_time": "2014-08-22T00:06:03", "url": "https://files.pythonhosted.org/packages/2f/6e/c3b5d3d43fa5f765c7901e353ae4fdf6ec75dd51b9ad31fe42aa7ec7ed6f/PrintDebug-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "0e443e9267904916f50ca687d51802f6", "sha256": "b49b8563acba9b281014d18675f32414076fd0daed5c3b0816c8e47edde45682" }, "downloads": -1, "filename": "PrintDebug-0.0.3.tar.gz", "has_sig": false, "md5_digest": "0e443e9267904916f50ca687d51802f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15402, "upload_time": "2014-08-22T00:35:20", "url": "https://files.pythonhosted.org/packages/fc/e9/8ec59bf416d7547792a97c633f39af5098d9008a1c20b3f5313fdadd422a/PrintDebug-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "d77b3adc01cef5accdf45cd6bcc644b1", "sha256": "96661ed23bd87cff2243428103492f1d80f3d7ee3c0cbc7aee6f65f7e3f83cd0" }, "downloads": -1, "filename": "PrintDebug-0.0.4.tar.gz", "has_sig": false, "md5_digest": "d77b3adc01cef5accdf45cd6bcc644b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15655, "upload_time": "2014-08-22T01:39:12", "url": "https://files.pythonhosted.org/packages/8b/46/9a33ca3f52f74f15ebaaa2dd34fcc95efbc2ac1e7ce378f01b7318ea1b13/PrintDebug-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "3e63c1320860a6790cacce0081be16ab", "sha256": "6db9b8e41b71dee488c1fc9faba66db71e0ab4cc4aae6f20f811c8b0d1e937b4" }, "downloads": -1, "filename": "PrintDebug-0.0.5.tar.gz", "has_sig": false, "md5_digest": "3e63c1320860a6790cacce0081be16ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15899, "upload_time": "2014-09-21T07:16:58", "url": "https://files.pythonhosted.org/packages/b6/ae/e065fccbc4f7eb23af3c4628d0379ab4980d82cdca5f1922e457a10a7a0a/PrintDebug-0.0.5.tar.gz" } ], "0.0.5-1": [ { "comment_text": "", "digests": { "md5": "c3085c274e77243834cb507702057a43", "sha256": "a03d2824f4c531effbac4aa1bb75ea4c4c6262d120de659137d510492dd766a5" }, "downloads": -1, "filename": "PrintDebug-0.0.5-1.tar.gz", "has_sig": false, "md5_digest": "c3085c274e77243834cb507702057a43", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15983, "upload_time": "2014-09-21T07:21:01", "url": "https://files.pythonhosted.org/packages/3f/ff/0b427bc88516be5b43c0f22327a278dacb9a6ed1cddb9b0baf18bb1b5946/PrintDebug-0.0.5-1.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "753e515d63e151995796fb1e146fb56f", "sha256": "3870309367185516521ab2c969a95d6f7632a449e041892b87639feb1f373b3a" }, "downloads": -1, "filename": "PrintDebug-0.1.0.tar.gz", "has_sig": false, "md5_digest": "753e515d63e151995796fb1e146fb56f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18384, "upload_time": "2015-12-05T04:10:16", "url": "https://files.pythonhosted.org/packages/e2/eb/57fdc9e6d7fd3b8f712581a6b5e827de60c601da1a7a2c776f83a4cdb979/PrintDebug-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "1cae7b17ffba23becba92c11ae8246ec", "sha256": "f33a0b92604893c709471228907774bac75e53e882b5a449163ce2d0e35ad64e" }, "downloads": -1, "filename": "PrintDebug-0.1.1.tar.gz", "has_sig": false, "md5_digest": "1cae7b17ffba23becba92c11ae8246ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17851, "upload_time": "2016-01-28T05:14:03", "url": "https://files.pythonhosted.org/packages/25/26/f574367ed4adef99118a0029c2a842d301969c0bf4a1fd247a88b11a2774/PrintDebug-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "740ba371d6db15abeffdaaabdbf999ef", "sha256": "6bfc2f7f47d3612eefeaf189e82a84ec52c592c81d6980c0b0e5598a0076e3a8" }, "downloads": -1, "filename": "PrintDebug-0.2.0.tar.gz", "has_sig": false, "md5_digest": "740ba371d6db15abeffdaaabdbf999ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19000, "upload_time": "2016-08-29T00:40:25", "url": "https://files.pythonhosted.org/packages/0e/22/ebb5963ad7128eff07b3dfc0aee15ef00c48444c46fc8735cc97aaa800d1/PrintDebug-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "fd30557e50dc24f3dca6c8c9456a8fd4", "sha256": "1c5c606e706bffb04ba367af5977ed6c325741087eb9d7a83ed288953de7f51f" }, "downloads": -1, "filename": "PrintDebug-0.2.1.tar.gz", "has_sig": false, "md5_digest": "fd30557e50dc24f3dca6c8c9456a8fd4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19984, "upload_time": "2016-08-29T02:12:38", "url": "https://files.pythonhosted.org/packages/fd/11/660de768b1efc81443da30010be8b83363ace266ec00788c7d4ee20021ae/PrintDebug-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "e186d94a9dc8c8b04ee9be4309e68e63", "sha256": "19c8cdd9fb8dddc17d1f7ee41264c335078527b6f5f60beca8d7689fe7ef7080" }, "downloads": -1, "filename": "PrintDebug-0.2.2.tar.gz", "has_sig": false, "md5_digest": "e186d94a9dc8c8b04ee9be4309e68e63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21756, "upload_time": "2016-11-25T01:09:52", "url": "https://files.pythonhosted.org/packages/3d/51/a5d88fa8e4e6faf26f7635bd09aae04eaee1a4fe746e7c4b5d6a4756ac33/PrintDebug-0.2.2.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "159126d22d2b9e4cf389cde1d3fe83f6", "sha256": "18233a50196bd8f51a6bec3f11519966e2891bb8ba1fcb29644fc8927b609c44" }, "downloads": -1, "filename": "PrintDebug-0.3.0.tar.gz", "has_sig": false, "md5_digest": "159126d22d2b9e4cf389cde1d3fe83f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23760, "upload_time": "2017-01-12T02:05:56", "url": "https://files.pythonhosted.org/packages/be/f6/4e00609a553d77a046f1eba11ae942e41418214f34a64a5ce579e88a731d/PrintDebug-0.3.0.tar.gz" } ], "0.3.5": [ { "comment_text": "", "digests": { "md5": "0e971f36681022834c481e9899adf917", "sha256": "4d3b4e64162d611a51161ea08d06ed8c9a10b5697c3a63ccbe6f1baffcde52ab" }, "downloads": -1, "filename": "PrintDebug-0.3.5.tar.gz", "has_sig": false, "md5_digest": "0e971f36681022834c481e9899adf917", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26986, "upload_time": "2019-04-02T23:22:42", "url": "https://files.pythonhosted.org/packages/c5/e9/2e68cbd0a32e679f3b4ca00e2fe212e6cc994513b6f409eecae0427eb587/PrintDebug-0.3.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0e971f36681022834c481e9899adf917", "sha256": "4d3b4e64162d611a51161ea08d06ed8c9a10b5697c3a63ccbe6f1baffcde52ab" }, "downloads": -1, "filename": "PrintDebug-0.3.5.tar.gz", "has_sig": false, "md5_digest": "0e971f36681022834c481e9899adf917", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26986, "upload_time": "2019-04-02T23:22:42", "url": "https://files.pythonhosted.org/packages/c5/e9/2e68cbd0a32e679f3b4ca00e2fe212e6cc994513b6f409eecae0427eb587/PrintDebug-0.3.5.tar.gz" } ] }