{ "info": { "author": "Calvin Spealman", "author_email": "ironfroggy@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Plugins", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "Tracerlib is a set of utilities to make tracing Python code easier.\n\nIt provides ``TracerManager``, which can allow multiple trace functions to\ncoexist. It can easily be enabled and disabled, either manually or as a\ncontext manager in a with statement.\n\n``Tracer`` classes make handling the different trace events much easier.\n\n::\n\n class TraceExceptions(Tracer):\n def trace_exception(self, func_name, exctype, value, tb):\n print \"Saw an exception: %r\" % (value,)\n\n``Tracer`` is also easily capable of filtering which events it listens\nto. It accepts both an ``events`` parameter, a list of trace events it\nwill respond to, and a ``watch`` parameter, a list of paths it will\nrespond to in the form of ``package.module.class.function``.\n\nThis can easily wrap a trace function, or you can subclass ``Tracer``\nand implement one of its helpful ``trace_*()`` methods.\n\nAnd, a helper class ``FrameInspector`` which wraps a frame and makes it\ntrivial to inspect the function name and arguments the function had been\ncalled with.\n\n::\n\n inspector = FrameInspector(sys._getframe())\n\n print \"Called\", inspector.func_name\n print \"args:\", inspector.args\n print \"kwargs:\", inspector.kwargs\n", "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/ironfroggy/tracerlib", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "tracerlib", "package_url": "https://pypi.org/project/tracerlib/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/tracerlib/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ironfroggy/tracerlib" }, "release_url": "https://pypi.org/project/tracerlib/0.1/", "requires_dist": null, "requires_python": null, "summary": "Tracerlib provides a set of helpers to make tracing Python code easier.", "version": "0.1" }, "last_serial": 800853, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "bcf7c9378023574fc46856c2b3deb9ed", "sha256": "845a6fdf00478872516e8e782e7f055a3f1a3eb1704bca95ffc7bc9892d85d46" }, "downloads": -1, "filename": "tracerlib-0.1.tar.gz", "has_sig": false, "md5_digest": "bcf7c9378023574fc46856c2b3deb9ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5000, "upload_time": "2012-06-07T00:26:14", "url": "https://files.pythonhosted.org/packages/5e/00/46575b8a61c0d11b5a096e70b3fba0e5bee8e3700147c1a8630aa1341c33/tracerlib-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bcf7c9378023574fc46856c2b3deb9ed", "sha256": "845a6fdf00478872516e8e782e7f055a3f1a3eb1704bca95ffc7bc9892d85d46" }, "downloads": -1, "filename": "tracerlib-0.1.tar.gz", "has_sig": false, "md5_digest": "bcf7c9378023574fc46856c2b3deb9ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5000, "upload_time": "2012-06-07T00:26:14", "url": "https://files.pythonhosted.org/packages/5e/00/46575b8a61c0d11b5a096e70b3fba0e5bee8e3700147c1a8630aa1341c33/tracerlib-0.1.tar.gz" } ] }