{ "info": { "author": "Ben Mezger", "author_email": "me@benmezger.nl", "bugtrack_url": null, "classifiers": [], "description": "# PyDebug\n\nThis is a simple set of utilities which makes it easier to debug Python objects.\nPydebug respects Django's config. It checks if the decorator is running within a Django\nproject and `DEBUG` is set to `True`. If it's set to `False`, it simply returns the function.\n\n## Installing\n\nYou can install by cloning this repository and running `pip install .` within this directory, or\nyou can install through Pypi, by running `pip install python-pydebug`.\n\n## Requirements\n\nAlthough Pydebug uses Python's standard library, it tried to import `Django` to make sure you are not\nwithin a Django project.\n\n| Library | Defaults |\n|---------------|----------|\n| Cython | - |\n| IPDB | PDB |\n| Line-profiler | - |\n\n`Line-profiler` requires `Cython` to work, if `IPDB` is not found, it fallsback to Python's standard `PBD` library.\n\n**NOTE:** At the moment, it is not possible to add `rkern/line_profiler` as a requirements due to their install process.\nCheck their [README](https://github.com/rkern/line_profiler/blob/master/README.rst#installation) for installation instructions.\n\n\n# Usage\n\n### `PDBDebugger`\n\n``` python\nfrom pydebug import PDBDebugger\n\n@PDBDebugger()\ndef hello_world(a, b):\n x = a + b\n return (a, b)\n```\n\nYou may tell `PDBdebugger` to drop a `IPDB` shell only when an error occurs\n\n``` python\nfrom pydebug import PDBDebugger\n\n@PDBDebugger(on_error=True)\ndef hello_world(a, b):\n x = a + b\n return (a, b)\n```\n\n### `DisassembleDebug`\n\nYou may disassemble a Python function by using the `Disassembledebug` decorator.\n\n``` python\nfrom pydebug import Disassembledebug\n\n@DisassembleDebug()\ndef hello_world(a, b):\n x = a + b\n return (a, b)\n```\n\n### `Profilerdebug`\n\n`Profilerdebug` uses Python's default `cProfile` library.\n\n``` python\nfrom pydebug import ProfilerDebug\n\n@ProfilerDebug()\ndef hello_world(a, b):\n x = a + b\n return (a, b)\n```\n\n### `LineProfilerDebug`\n\n`LineProfilerDebug` requires `line-profile` library to work, which also requires `Cython`.\n\n``` python\nfrom pydebug import LineProfilerDebug\n\n@LineProfilerDebug()\ndef hello_world(a, b):\n x = a + b\n return (a, b)\n```\n\n### `ObjectInfoDebug`\n\n`ObjectInfoDebug` prints the arguments which were passed to the function, the `performace` counter (in minutes), the\n`process` time (in minutes) and the returned objects by the function.\n\n``` python\nfrom pydebug import ObjectInfoDebug\n\n@ObjectInfoDebug()\ndef hello_world(a, b):\n x = a + b\n return (a, b)\n```\n\n# TODOs\n\n1. Allow developer to use multiple decorators instead of one decorating the other\n2. Show better profile metrics\n3. Plot metrics to an image", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/benmezger/pydebug", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "python-pydebug", "package_url": "https://pypi.org/project/python-pydebug/", "platform": "", "project_url": "https://pypi.org/project/python-pydebug/", "project_urls": { "Homepage": "http://github.com/benmezger/pydebug" }, "release_url": "https://pypi.org/project/python-pydebug/0.6/", "requires_dist": null, "requires_python": ">=3.*.*", "summary": "A set of debugging decorators", "version": "0.6" }, "last_serial": 5375548, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "d372ea33dfa71b5361bbcba4dd048a2a", "sha256": "a0cfa71431fb4d085883bea40901de36eac312c0bc33b4955108167e81049b0a" }, "downloads": -1, "filename": "python_pydebug-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d372ea33dfa71b5361bbcba4dd048a2a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5236, "upload_time": "2019-05-12T21:04:30", "url": "https://files.pythonhosted.org/packages/d6/44/5d6605a90a35c253ea38c33c90ac1ee38806d75d487aa7c15bd88e36ceff/python_pydebug-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "78e193e2d17816c0bbe30a72e3f86e2f", "sha256": "cfcf6b7c646ba00e72b3d6ca972a28cee16f96380a4fdef16e8fbdd417d796a3" }, "downloads": -1, "filename": "python-pydebug-0.1.tar.gz", "has_sig": false, "md5_digest": "78e193e2d17816c0bbe30a72e3f86e2f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2711, "upload_time": "2019-05-12T21:04:32", "url": "https://files.pythonhosted.org/packages/5a/64/c2fcf0a953358e56b21e352bc96f62b4517b77d0a6796eeaa744509fad9c/python-pydebug-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "278e1b461d56106a541e5a01661ac137", "sha256": "de6b8947e2c55e539342b1ffe4d496eedb150c980d926085afc0e20e35e44c95" }, "downloads": -1, "filename": "python_pydebug-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "278e1b461d56106a541e5a01661ac137", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6125, "upload_time": "2019-05-12T21:32:23", "url": "https://files.pythonhosted.org/packages/cd/c6/5d8d60cc3f8cf780ca2a625b4830f1527624204437e77ad06cd6d320520d/python_pydebug-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "306ffd197227b90af14126be9b1679eb", "sha256": "3422d9b308a5554142f2a49316d0a2a73fc9c369f664f2eab1d14795f340f628" }, "downloads": -1, "filename": "python-pydebug-0.2.tar.gz", "has_sig": false, "md5_digest": "306ffd197227b90af14126be9b1679eb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3816, "upload_time": "2019-05-12T21:32:25", "url": "https://files.pythonhosted.org/packages/74/cc/5f8496759b08659d73ada19690dde2863600393c339899daf32ca59d6862/python-pydebug-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "7ffba99fc93ab73dea20154661b8ce19", "sha256": "f91c3bb3996dd2cef17a931594160ae72662f69627a51f9f0e1dc8f6145c0c9b" }, "downloads": -1, "filename": "python-pydebug-0.3.tar.gz", "has_sig": false, "md5_digest": "7ffba99fc93ab73dea20154661b8ce19", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.*.*", "size": 4612, "upload_time": "2019-05-14T19:26:04", "url": "https://files.pythonhosted.org/packages/88/68/8f99eebdf75c25a0b904be6c8f34a6d4e64c9e065dbafe5bb859da6a688e/python-pydebug-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "4d01dc9365288a4376e67b82bc217733", "sha256": "603b81906af41c12e66142a8ae1b6b257d4cf934be52f89192d56cd5a1c45401" }, "downloads": -1, "filename": "python-pydebug-0.4.tar.gz", "has_sig": false, "md5_digest": "4d01dc9365288a4376e67b82bc217733", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.*.*", "size": 4634, "upload_time": "2019-05-16T15:11:13", "url": "https://files.pythonhosted.org/packages/09/d1/7b1e1b832371051a375ae0488d2e09cca472d5ee88f10b107b8639f83a69/python-pydebug-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "8cf328ed89aa43fa87d5e02040b2dc19", "sha256": "7aed206efd3f33e3c87adb786cf55cbbbfc4dd7af4876f2aa07e38782fbe6721" }, "downloads": -1, "filename": "python-pydebug-0.5.tar.gz", "has_sig": false, "md5_digest": "8cf328ed89aa43fa87d5e02040b2dc19", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.*.*", "size": 4641, "upload_time": "2019-05-26T00:35:37", "url": "https://files.pythonhosted.org/packages/1d/e1/a66bc3df4146339118dbbedba491e02aab5d8e3fe3f6cc183767e832b5fa/python-pydebug-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "b00a958882fe04032e12c75fd660306a", "sha256": "9e9950f031bcaf3130aa911bab3d8bf8db44c214c0744d1f52e61f29dca24634" }, "downloads": -1, "filename": "python-pydebug-0.6.tar.gz", "has_sig": false, "md5_digest": "b00a958882fe04032e12c75fd660306a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.*.*", "size": 4773, "upload_time": "2019-06-08T14:47:10", "url": "https://files.pythonhosted.org/packages/fc/31/2a9e919c431d5b7254cfda83e945dc70baeb934dd067fab21af55b820f4e/python-pydebug-0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b00a958882fe04032e12c75fd660306a", "sha256": "9e9950f031bcaf3130aa911bab3d8bf8db44c214c0744d1f52e61f29dca24634" }, "downloads": -1, "filename": "python-pydebug-0.6.tar.gz", "has_sig": false, "md5_digest": "b00a958882fe04032e12c75fd660306a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.*.*", "size": 4773, "upload_time": "2019-06-08T14:47:10", "url": "https://files.pythonhosted.org/packages/fc/31/2a9e919c431d5b7254cfda83e945dc70baeb934dd067fab21af55b820f4e/python-pydebug-0.6.tar.gz" } ] }