{ "info": { "author": "Evandro Coan", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# Debug Tools\n\n[![Build Status](https://travis-ci.org/evandrocoan/debugtools.svg?branch=master)](https://travis-ci.org/evandrocoan/debugtools)\n[![Build status](https://ci.appveyor.com/api/projects/status/github/evandrocoan/debugtools?branch=master&svg=true)](https://ci.appveyor.com/project/evandrocoan/PythonDebugTools/branch/master)\n[![codecov](https://codecov.io/gh/evandrocoan/debugtools/branch/master/graph/badge.svg)](https://codecov.io/gh/evandrocoan/debugtools)\n[![Coverage Status](https://coveralls.io/repos/github/evandrocoan/debugtools/badge.svg?branch=HEAD)](https://coveralls.io/github/evandrocoan/debugtools?branch=HEAD)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/5f3e2cd536b54774b193a1eeef930e3c)](https://www.codacy.com/app/evandrocoan/debugtools?utm_source=github.com&utm_medium=referral&utm_content=evandrocoan/debugtools&utm_campaign=Badge_Grade)\n[![Latest Release](https://img.shields.io/github/tag/evandrocoan/debugtools.svg?label=version)](https://github.com/evandrocoan/debugtools/releases)\n[![PyPi Versions](https://img.shields.io/pypi/pyversions/debug_tools.svg)](https://pypi.python.org/pypi/debug_tools)\n\nBasic logger for Python `logging` module.\n\n\n___\n## Usage\n\n```\npip install debug_tools\n```\n\nOr clone this repository locally by running the commands:\n```\ngit clone https://github.com/evandrocoan/debugtools\ncd debugtools\n```\nThen, run `python setup.py install` or `python setup.py develop` to install it on development mode.\n\n\n```python\nfrom debug_tools import getLogger\n\n# Enable debug messages: (bitwise)\n# 0 - Disabled debugging.\n# 1 - Basic logging messages.\n# 2 - AgentPlayer class' notices.\n# 4 - StickIntelligence class' notices.\n# 127 - All debugging levels at the same time.\nlog = getLogger( 127, __name__ )\nlog( 1, \"Debugging\" )\n```\n\n\n### Cleaning the log file every start up\n\nIf you are logging the debug output to a file and you would like to clean/erase all the log file contents,\nevery time you re-create the logger,\nyou need first to unlock the log file lock, otherwise,\nthe file contents are not going to be erased.\n\nTo unlock your log file,\nyou just need to call `log.setup(\"\")`,\nwith an empty string before creating a new logger.\n\nOn Sublime Text, this could be done with te following:\n```python\nfrom debug_tools import getLogger\nlog = getLogger(debug_enabled, \"wrap_plus\", \"wrapplus.txt\", mode='w')\n\ndef plugin_unloaded():\n log.delete()\n```\n\n\n### Dynamically Reloading It\n\nIf you want to reload the debug tools code on the fly, you can use this to import it:\n```python\nimport imp\nimport debug_tools.logger\n\nimp.reload( debug_tools.logger )\nfrom debug_tools.logger import Debugger\nfrom debug_tools.logger import getLogger\n\nDebugger.deleteAllLoggers()\nlog = getLogger(1, \"LSP\")\n```\n\n\n### Using file logger configuration\n\nIf you want to load the logger configuration from a file, you need to replace the standard logging\nmodule class with this one:\n```\nimport logging\nimport debug_tools\n\nif log_config:\n\n with open(log_config, 'r') as f:\n logging.Logger.manager = debug_tools.Debugger.manager\n logging.Logger.manager.setLoggerClass( debug_tools.Debugger )\n\n logging.config.dictConfig(json.load(f))\n```\n\n\n## Sublime Text Dependency\n\nTo use this as a Package Control Dependency https://packagecontrol.io/docs/dependencies create\nthis `dependencies.json` file on the root of your Package:\n```json\n{\n \"windows\": {\n \">3000\": [\n \"python-pywin32\",\n \"portalockerfile\",\n \"concurrentloghandler\",\n \"debugtools\"\n ]\n },\n \"*\": {\n \"*\": [\n \"portalockerfile\",\n \"concurrentloghandler\",\n \"debugtools\"\n ]\n }\n}\n```\n\n\n### Update estimated_time_left from upstream\n\nTo update the subtree `all/debug_tools/estimated_time_left`,\nfrom upstream updates you can use the command:\n```shell\ngit subtree pull --prefix=all/debug_tools/estimated_time_left https://github.com/evandrocoan/EstimatedTimeLeft master\n```\n\nTo send updates back to the upstream, use the following command:\n```shell\ngit subtree push --prefix=all/debug_tools/estimated_time_left https://github.com/evandrocoan/EstimatedTimeLeft master\n```\n\n\n# License\n\nSee the file [LICENSE.txt](LICENSE.txt)", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/evandrocoan/debug_tools", "keywords": "", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "debug-tools", "package_url": "https://pypi.org/project/debug-tools/", "platform": "", "project_url": "https://pypi.org/project/debug-tools/", "project_urls": { "Homepage": "https://github.com/evandrocoan/debug_tools" }, "release_url": "https://pypi.org/project/debug-tools/2.6.18/", "requires_dist": null, "requires_python": "", "summary": "Python Distribution Logger, Debugger and Utilities", "version": "2.6.18" }, "last_serial": 5830257, "releases": { "2.0.0": [ { "comment_text": "", "digests": { "md5": "7c6a0a3ba6c5228ba5817d5ea0be4247", "sha256": "de61623c6e894dff4d8e27d399a1f23828d81197d056b79b00eb28b717158335" }, "downloads": -1, "filename": "debug_tools-2.0.0.tar.gz", "has_sig": false, "md5_digest": "7c6a0a3ba6c5228ba5817d5ea0be4247", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7912, "upload_time": "2018-01-22T15:17:24", "url": "https://files.pythonhosted.org/packages/84/bb/10096d79e35188ce0a6a40658037b88504aaa5b55e518aa4ac397c595cd2/debug_tools-2.0.0.tar.gz" } ], "2.1.6": [ { "comment_text": "", "digests": { "md5": "6727edf99edd2cd317113f74ad711c8f", "sha256": "1dd87d348020e3e7c00a829a893e9420ea20554cce99f61d10f62e7036e83722" }, "downloads": -1, "filename": "debug_tools-2.1.6.tar.gz", "has_sig": false, "md5_digest": "6727edf99edd2cd317113f74ad711c8f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17801, "upload_time": "2018-06-30T22:25:36", "url": "https://files.pythonhosted.org/packages/3f/1e/9ddb80e99f0c98fcba7be797ef4cdb70076c1d36df91d671ffb879c060aa/debug_tools-2.1.6.tar.gz" } ], "2.2.1": [ { "comment_text": "", "digests": { "md5": "ff1f76e1d458ed2cea1668eb8097437e", "sha256": "71fbcee8ebdc704cd156edc4c8d1194543212542170642a59019c8101839eb35" }, "downloads": -1, "filename": "debug_tools-2.2.1.tar.gz", "has_sig": false, "md5_digest": "ff1f76e1d458ed2cea1668eb8097437e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18681, "upload_time": "2018-09-17T23:38:13", "url": "https://files.pythonhosted.org/packages/6b/ed/33f0e37df63bd698441145123a19eac78da6cdefcdf18ba9bff1c4bee75b/debug_tools-2.2.1.tar.gz" } ], "2.3.0": [ { "comment_text": "", "digests": { "md5": "a17532a90658931a50f671935cbca6d4", "sha256": "dd32025eefd900d39f810cfb05a30bfd1334e81b9ddab1cc09f047c8bdbead4b" }, "downloads": -1, "filename": "debug_tools-2.3.0.tar.gz", "has_sig": false, "md5_digest": "a17532a90658931a50f671935cbca6d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26737, "upload_time": "2018-10-03T21:34:55", "url": "https://files.pythonhosted.org/packages/c3/f2/402f0fbdbc3ba45dbef5ed2ac79136485698c8aff332738261700b799093/debug_tools-2.3.0.tar.gz" } ], "2.4.4": [ { "comment_text": "", "digests": { "md5": "6412e6745615db17a33fab3ff638dd99", "sha256": "3372c23cca28554931dea87784cde03b7ad6e016cbd662fc4ea3bdc60d154bc2" }, "downloads": -1, "filename": "debug_tools-2.4.4.tar.gz", "has_sig": false, "md5_digest": "6412e6745615db17a33fab3ff638dd99", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31600, "upload_time": "2018-10-17T19:22:19", "url": "https://files.pythonhosted.org/packages/05/7d/d3f805632fcfe0f27ff3a6ac8cec8dfbcde5b1ac3f522d27141162dc1480/debug_tools-2.4.4.tar.gz" } ], "2.5.8": [ { "comment_text": "", "digests": { "md5": "0eca57bdcf217dae064f731d117a9775", "sha256": "5e539a1d0b0bb5458473c58a326f8a2b08794981e1b3c737741387a55c5fa7d0" }, "downloads": -1, "filename": "debug_tools-2.5.8.tar.gz", "has_sig": false, "md5_digest": "0eca57bdcf217dae064f731d117a9775", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31824, "upload_time": "2018-10-27T18:49:18", "url": "https://files.pythonhosted.org/packages/21/8b/2b8a04574367c8d1703b6f2f34390374a645ace4003bda6097f78549e8e4/debug_tools-2.5.8.tar.gz" } ], "2.6.10": [ { "comment_text": "", "digests": { "md5": "d22ebbafb2511ce810eb3fd7e8612492", "sha256": "956d224454edb27002a8cb1ab52b51302b013b4941e3d5e83093d86ccc18b3d0" }, "downloads": -1, "filename": "debug_tools-2.6.10.tar.gz", "has_sig": false, "md5_digest": "d22ebbafb2511ce810eb3fd7e8612492", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 52457, "upload_time": "2019-05-02T05:38:54", "url": "https://files.pythonhosted.org/packages/ec/0c/2837300b1385cfa8ab468cc715b36a978de2433310443191e4dafc8263af/debug_tools-2.6.10.tar.gz" } ], "2.6.11": [ { "comment_text": "", "digests": { "md5": "e8ecd25456ac183deac85ddb8e846c13", "sha256": "13f0f9f82521e90c0fb0d0820070bd89409c171bc30008dd48fde4b4e3cdbcd9" }, "downloads": -1, "filename": "debug_tools-2.6.11.tar.gz", "has_sig": false, "md5_digest": "e8ecd25456ac183deac85ddb8e846c13", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 52493, "upload_time": "2019-05-06T01:40:50", "url": "https://files.pythonhosted.org/packages/20/8d/bf6e5ed9d405892c0ca7ba458ac731ad4a5342f9179954dff1407b20c2f6/debug_tools-2.6.11.tar.gz" } ], "2.6.12": [ { "comment_text": "", "digests": { "md5": "bfd9d5a6ab93a6edeca88c318b527275", "sha256": "18351c999be50d5435d9e6041c73654082d3ebef8f04aac58cf9288e0147cf86" }, "downloads": -1, "filename": "debug_tools-2.6.12.tar.gz", "has_sig": false, "md5_digest": "bfd9d5a6ab93a6edeca88c318b527275", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 52558, "upload_time": "2019-05-21T01:40:11", "url": "https://files.pythonhosted.org/packages/47/82/1c6bf47c4ade499019f67fdf5a6be2227e6d56fab222db5231251c891b24/debug_tools-2.6.12.tar.gz" } ], "2.6.13": [ { "comment_text": "", "digests": { "md5": "22def76a6b4941c7ac4c9a6bd1af847b", "sha256": "dd8bf6267222135d30f47147cb9d482e84dfe3d111a4af6db79ec008d1957cdb" }, "downloads": -1, "filename": "debug_tools-2.6.13.tar.gz", "has_sig": false, "md5_digest": "22def76a6b4941c7ac4c9a6bd1af847b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 53550, "upload_time": "2019-06-24T15:44:39", "url": "https://files.pythonhosted.org/packages/30/17/6922f541482f35c91ae18f910148cf2b3a90fa635090d8fb08cb7c08944d/debug_tools-2.6.13.tar.gz" } ], "2.6.14": [ { "comment_text": "", "digests": { "md5": "a36dc45e0147394ab6f340edac4293d5", "sha256": "9656ca2725c95da86714850895b9438a46657cb7fe8e46a7556e8dfe46445606" }, "downloads": -1, "filename": "debug_tools-2.6.14.tar.gz", "has_sig": false, "md5_digest": "a36dc45e0147394ab6f340edac4293d5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 53930, "upload_time": "2019-08-21T17:28:47", "url": "https://files.pythonhosted.org/packages/ad/95/3dc957e16c82d0a5cad25bae9b92ed01fa302c813b15587665e198daa347/debug_tools-2.6.14.tar.gz" } ], "2.6.15": [ { "comment_text": "", "digests": { "md5": "b98b43ffcaa4dd62f8e9a4e244f5e81d", "sha256": "33f12b29ad53720d438c05c33b334aaef6b8dfdce7c126629a626307cccf43a1" }, "downloads": -1, "filename": "debug_tools-2.6.15.tar.gz", "has_sig": false, "md5_digest": "b98b43ffcaa4dd62f8e9a4e244f5e81d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 54012, "upload_time": "2019-08-29T18:10:25", "url": "https://files.pythonhosted.org/packages/fd/73/13562dbbaabac3c9cb85e32ddd7e6b105b080edbe1bab03356c71314f04d/debug_tools-2.6.15.tar.gz" } ], "2.6.18": [ { "comment_text": "", "digests": { "md5": "0087e6738ab320daa1c22028bd928c3b", "sha256": "e96bbebb58b2a55640fa888ffe83acae4c744c2fdb816b2e49671c5fa2e15071" }, "downloads": -1, "filename": "debug_tools-2.6.18.tar.gz", "has_sig": false, "md5_digest": "0087e6738ab320daa1c22028bd928c3b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 54425, "upload_time": "2019-09-14T21:11:00", "url": "https://files.pythonhosted.org/packages/cb/75/5ccf3f6b7de2fbf803ad7a067c4848d6f3948ed22e4997b730d5dd5fb60b/debug_tools-2.6.18.tar.gz" } ], "2.6.4": [ { "comment_text": "", "digests": { "md5": "4c2378043d31cb6070802365fc97ad3f", "sha256": "f634be0255badcac268e61ea4dea23d06fd1a61bdbd0e8a06f856f6732e47457" }, "downloads": -1, "filename": "debug_tools-2.6.4.tar.gz", "has_sig": false, "md5_digest": "4c2378043d31cb6070802365fc97ad3f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 51876, "upload_time": "2019-04-11T00:26:45", "url": "https://files.pythonhosted.org/packages/60/3a/318d3cc651e0995513ddd3bb6340c8a088c6fa8372bd7bc3d93a57fd94b2/debug_tools-2.6.4.tar.gz" } ], "2.6.5": [ { "comment_text": "", "digests": { "md5": "9d91631e8a0fc285fe7df7de41b99444", "sha256": "04d27a46d599a04e1542f3d2206a25fb3a07dc678316e5dbcd18a3ae4496768b" }, "downloads": -1, "filename": "debug_tools-2.6.5.tar.gz", "has_sig": false, "md5_digest": "9d91631e8a0fc285fe7df7de41b99444", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 51897, "upload_time": "2019-04-25T01:39:14", "url": "https://files.pythonhosted.org/packages/56/e9/52f60273d01e821674ccc1c7f43c78b95a5d578955b23c8ad92a26e883b9/debug_tools-2.6.5.tar.gz" } ], "2.6.6": [ { "comment_text": "", "digests": { "md5": "ea6dca01d28aece49d7d1d383caa7da6", "sha256": "85efc85b73265e6dcf41cd14bbe3c20836d096958deeb3917fffc887bccdc5de" }, "downloads": -1, "filename": "debug_tools-2.6.6.tar.gz", "has_sig": false, "md5_digest": "ea6dca01d28aece49d7d1d383caa7da6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 51897, "upload_time": "2019-04-25T01:40:40", "url": "https://files.pythonhosted.org/packages/50/48/6669f71eb2168b647e741102867856271670fe85743050bb7c3372b36945/debug_tools-2.6.6.tar.gz" } ], "2.6.7": [ { "comment_text": "", "digests": { "md5": "b7c9a8c55e6264ac42e26bbe09c8a016", "sha256": "f992b671c43f3fb1f8aff2107fe231d34ebf64bc39e6393d7c261091aba7f949" }, "downloads": -1, "filename": "debug_tools-2.6.7.tar.gz", "has_sig": false, "md5_digest": "b7c9a8c55e6264ac42e26bbe09c8a016", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 51918, "upload_time": "2019-04-25T02:21:36", "url": "https://files.pythonhosted.org/packages/7a/eb/5df1c49bfeecdd86fc5ef4253e5ade2ae4cab88608b258d5a6a79d518abd/debug_tools-2.6.7.tar.gz" } ], "2.6.8": [ { "comment_text": "", "digests": { "md5": "c397d50281a45712be259362c7e4c6c0", "sha256": "dda77c188afda2e859851110a87940fd3c9a6c83ec1aafbe37ffd81f466acd65" }, "downloads": -1, "filename": "debug_tools-2.6.8.tar.gz", "has_sig": false, "md5_digest": "c397d50281a45712be259362c7e4c6c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 52009, "upload_time": "2019-04-27T01:08:32", "url": "https://files.pythonhosted.org/packages/78/69/ba780b260dc44b2ddad7f31bab918219f2d8fb9244bfc349b5941136fce8/debug_tools-2.6.8.tar.gz" } ], "2.6.9": [ { "comment_text": "", "digests": { "md5": "78a6d88148a2624264b55fd7d56738d7", "sha256": "021263278b8f51243a820a8fde54e8d8ce6fbfb64aee5e8d6db1feb989b8439e" }, "downloads": -1, "filename": "debug_tools-2.6.9.tar.gz", "has_sig": false, "md5_digest": "78a6d88148a2624264b55fd7d56738d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 52440, "upload_time": "2019-05-02T01:35:45", "url": "https://files.pythonhosted.org/packages/6e/c0/135a1529dba1b5a95820325aacc54625c4819b77f88263d0938042fd9d80/debug_tools-2.6.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0087e6738ab320daa1c22028bd928c3b", "sha256": "e96bbebb58b2a55640fa888ffe83acae4c744c2fdb816b2e49671c5fa2e15071" }, "downloads": -1, "filename": "debug_tools-2.6.18.tar.gz", "has_sig": false, "md5_digest": "0087e6738ab320daa1c22028bd928c3b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 54425, "upload_time": "2019-09-14T21:11:00", "url": "https://files.pythonhosted.org/packages/cb/75/5ccf3f6b7de2fbf803ad7a067c4848d6f3948ed22e4997b730d5dd5fb60b/debug_tools-2.6.18.tar.gz" } ] }