{ "info": { "author": "Miroslav Shubernetskiy", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6" ], "description": "=========\nMRO tools\n=========\n\n.. image:: https://badge.fury.io/py/mro-tools.png\n :target: http://badge.fury.io/py/mro-tools\n\nVarious cli tools related to MRO. Useful for debugging complex class strictures.\n\n* Free software: MIT license\n* GitHub: https://github.com/miki725/mro-tools\n\nInstalling\n----------\n\nYou can install ``mro-tools`` using pip::\n\n $ pip install mro-tools\n\nWhy?\n----\n\nInheritance is wonderful. Except when its not.\nHow many times did you have to debug a complex class with MRO of >30 classes?\nYou will then know its not pleasant.\nEditors don't help much since as soon you jump to a base class, all editor\ninheritance calculations are relative to the jumped class, not the original subclass.\nThat makes it non-trivial to see what actually happens within\ncode execution without dropping into ``pdb``.\nThis package aims to aid with such issues.\nIt has a collection of cli tools which help troubleshooting complex classes\nwith big MRO trees.\n\nUsing\n-----\n\nMRO tools exposes all tools via a single group command.\nAll available commands can be seen by executing ``mro-tools`` command::\n\n \u276f\u276f\u276f mro-tools\n Usage: mro-tools [OPTIONS] COMMAND [ARGS]...\n\n Options:\n --help Show this message and exit.\n\n Commands:\n method Get all method definitions within all classes...\n version Print version of mro-tools\n\nEach sub-command has more documentation::\n\n \u276f\u276f\u276f mro-tools version --help\n Usage: mro-tools version [OPTIONS]\n\n Print version of mro-tools\n\n Options:\n --help Show this message and exit.\n\n``mro-tools`` can also be accessed as a Python module::\n\n \u276f\u276f\u276f python -m mro_tools\n\nExamples\n--------\n\n::\n\n \u276f\u276f\u276f python -m mro_tools method django.views.generic:FormView.get_context_data\n ========\n Full MRO\n ========\n django.views.generic.edit.FormView\n django.views.generic.base.TemplateResponseMixin\n django.views.generic.edit.BaseFormView\n django.views.generic.edit.FormMixin\n django.views.generic.base.ContextMixin\n django.views.generic.edit.ProcessFormView\n django.views.generic.base.View\n builtins.object\n\n ----------------------------------------------------\n django.views.generic.edit.FormMixin.get_context_data\n ----------------------------------------------------\n def get_context_data(self, **kwargs):\n \"\"\"Insert the form into the context dict.\"\"\"\n if 'form' not in kwargs:\n kwargs['form'] = self.get_form()\n return super().get_context_data(**kwargs)\n\n -------------------------------------------------------\n django.views.generic.base.ContextMixin.get_context_data\n -------------------------------------------------------\n def get_context_data(self, **kwargs):\n if 'view' not in kwargs:\n kwargs['view'] = self\n if self.extra_context is not None:\n kwargs.update(self.extra_context)\n return kwargs\n\n\n\n\nHistory\n-------\n\n0.3.0 (2019-02-08)\n~~~~~~~~~~~~~~~~~~\n\n* Added ``--no-color`` option.\n This allows open in other editors for syntax highlight:\n ``mro-tools klass ... | vim -R - +'set syntax=python'``\n* Added file to class header in ``klass`` command\n\n0.2.0 (2018-09-22)\n~~~~~~~~~~~~~~~~~~\n\n* Added ``klass`` command\n\n0.1.3 (2018-09-13)\n~~~~~~~~~~~~~~~~~~\n\n* Added pygments code highlight to ``method``\n\n0.1.2 (2018-02-13)\n~~~~~~~~~~~~~~~~~~\n\n* Added ``--django-configurations`` option\n\n0.1.1 (2018-01-05)\n~~~~~~~~~~~~~~~~~~\n\n* Fixes RST markup in README\n\n0.1.0 (2018-01-05)\n~~~~~~~~~~~~~~~~~~\n\n* First release on PyPI.\n\n\nCredits\n-------\n\nDevelopment Lead\n~~~~~~~~~~~~~~~~\n\n* Miroslav Shubernetskiy - https://github.com/miki725\n\nContributors\n~~~~~~~~~~~~\n\nNone yet. Why not be the first?\n\n\nLicense\n-------\n\nThe MIT License (MIT)\n\nCopyright (c) 2018, Miroslav Shubernetskiy\n\n::\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in\n all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/miki725/mro-tools", "keywords": "mro", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "mro-tools", "package_url": "https://pypi.org/project/mro-tools/", "platform": "", "project_url": "https://pypi.org/project/mro-tools/", "project_urls": { "Homepage": "https://github.com/miki725/mro-tools" }, "release_url": "https://pypi.org/project/mro-tools/0.3.0/", "requires_dist": null, "requires_python": "", "summary": "Various cli tools related to MRO. Useful for debugging complex class strictures.", "version": "0.3.0" }, "last_serial": 4796538, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "53aa448410ff93045537a0e761ef9d1a", "sha256": "fa1a0f1db670131645dee4b1816d5ed6596d782dc965aeef3289667367e86c26" }, "downloads": -1, "filename": "mro_tools-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "53aa448410ff93045537a0e761ef9d1a", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 8288, "upload_time": "2018-01-05T20:35:48", "url": "https://files.pythonhosted.org/packages/a1/a5/1037e7695fe016fa631b5d95ee4a6974ed18e0066c3124bc3df2588f16c2/mro_tools-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7b5b50805d44a73bc7c5c46151a7e094", "sha256": "81f266f10094f2ed6d5492c6cec65bdd9c7c52c590918ffe6514874a978f8327" }, "downloads": -1, "filename": "mro-tools-0.1.0.tar.gz", "has_sig": false, "md5_digest": "7b5b50805d44a73bc7c5c46151a7e094", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5292, "upload_time": "2018-01-05T20:35:43", "url": "https://files.pythonhosted.org/packages/15/81/ba0cc31f1d420f1320f70413f2447fb636695dffba40ea8e587e4138202b/mro-tools-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "6f158f244fd74fb6f169b0d7bc5459e7", "sha256": "324969d05d0c44cee47850779143660dd4ad84e149ebbea8287399240cb3d746" }, "downloads": -1, "filename": "mro_tools-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6f158f244fd74fb6f169b0d7bc5459e7", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 8339, "upload_time": "2018-01-05T20:42:26", "url": "https://files.pythonhosted.org/packages/75/15/b28ab34c08ac4a875ecdd1f8eb70421ea34409a89aa350d2847a698da92b/mro_tools-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fa4bc98374dd66a9cbcce4d8397e084e", "sha256": "4e7913151c12592927ff52ae5f4510e45d165b6b74649bfceaf4530e8375e684" }, "downloads": -1, "filename": "mro-tools-0.1.1.tar.gz", "has_sig": false, "md5_digest": "fa4bc98374dd66a9cbcce4d8397e084e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5670, "upload_time": "2018-01-05T20:42:23", "url": "https://files.pythonhosted.org/packages/4c/4f/24a59b3bac78ca9f7b5658c062ccdf4848393299b41f41a55cf7dd5ea4ed/mro-tools-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "b407e011a938cbc547b431719d250253", "sha256": "8b6b3ea46b75548eb30d9e3adba8b0f1a8e96235ed29fa96df6dcc483ee84c8c" }, "downloads": -1, "filename": "mro_tools-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b407e011a938cbc547b431719d250253", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 8458, "upload_time": "2018-02-13T15:28:06", "url": "https://files.pythonhosted.org/packages/02/86/40648eceea9cd1bb000a442fcfb046c86bf9fe956780d9489eb107aad820/mro_tools-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "62989ddfe3f5c48e997ed89c39539648", "sha256": "84eb8a824006e661bf8b39868fc112cad80911ae92f195332adeb1ec36d139dd" }, "downloads": -1, "filename": "mro-tools-0.1.2.tar.gz", "has_sig": false, "md5_digest": "62989ddfe3f5c48e997ed89c39539648", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5421, "upload_time": "2018-02-13T15:27:59", "url": "https://files.pythonhosted.org/packages/56/59/5245a714001f8ddae7061f872faa6b5c0fdccf2249af4538cc80db5d406f/mro-tools-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "f932261bc42a042c3cddbe7f824f87f8", "sha256": "805d9955a8e05db3059dd36ca2fd630fa63db0437c475154d0d24139b1609cb8" }, "downloads": -1, "filename": "mro_tools-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f932261bc42a042c3cddbe7f824f87f8", "packagetype": "bdist_wheel", "python_version": "3.7", "requires_python": null, "size": 5638, "upload_time": "2018-09-23T04:18:11", "url": "https://files.pythonhosted.org/packages/f3/79/3005dddb4492a4e02bec7b47f9e7adfacbdb4f60983a437d65aff8725122/mro_tools-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4ecedd652d0df963454b8b4b4dee0470", "sha256": "7c3be85988649160771a332f192f1fcfc63f934db2b3be7a9d781e4e2e288e94" }, "downloads": -1, "filename": "mro-tools-0.1.3.tar.gz", "has_sig": false, "md5_digest": "4ecedd652d0df963454b8b4b4dee0470", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5491, "upload_time": "2018-09-23T04:18:06", "url": "https://files.pythonhosted.org/packages/9d/29/f50c231876ed9b6a47440891ecbb482fedbf65ac19b3ce5eabfb2a5ceabf/mro-tools-0.1.3.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "3ad0dd9fb8a66688b771bf742552d304", "sha256": "2c7ba489374ea75300521004bcef6d1a5d8f39e76710ce1d23a2e84476c16a63" }, "downloads": -1, "filename": "mro_tools-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3ad0dd9fb8a66688b771bf742552d304", "packagetype": "bdist_wheel", "python_version": "3.7", "requires_python": null, "size": 7444, "upload_time": "2018-09-23T04:19:10", "url": "https://files.pythonhosted.org/packages/02/f3/e7e223a18b561439a882230bd85de115fe59c021d6ccc8f995a879b35ab6/mro_tools-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4b0991da8a5dbcca7bb58aa270e7b301", "sha256": "7f3cf58b0d95ebb0f94422cc89d4e55a494e44d9a4e9e1d8b6bb98a1ec58a886" }, "downloads": -1, "filename": "mro-tools-0.2.0.tar.gz", "has_sig": false, "md5_digest": "4b0991da8a5dbcca7bb58aa270e7b301", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6214, "upload_time": "2018-09-23T04:19:07", "url": "https://files.pythonhosted.org/packages/4e/70/6e8e5a70e220e6f945f935bc7604379f4185ed38c3087e7ec61aba8bf6a8/mro-tools-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "08ca34fe1d0d0c54a89507783739031e", "sha256": "3ebaacc6fdc97ba0c8ee75f591c8e1932c4d97a63208a1ce1497577f863ace96" }, "downloads": -1, "filename": "mro_tools-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "08ca34fe1d0d0c54a89507783739031e", "packagetype": "bdist_wheel", "python_version": "3.7", "requires_python": null, "size": 8897, "upload_time": "2019-02-08T17:21:01", "url": "https://files.pythonhosted.org/packages/76/d1/56bc59ee2b982093bb58b0ebd52fa3c392aa989e8c79c770ac2278f9db46/mro_tools-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "417c2cdcd28ff207d63c991105a07fab", "sha256": "7fbb57d9f5980f15f90e9c074c2822618bfe2b59037b522762bf23df2566f898" }, "downloads": -1, "filename": "mro-tools-0.3.0.tar.gz", "has_sig": false, "md5_digest": "417c2cdcd28ff207d63c991105a07fab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6508, "upload_time": "2019-02-08T17:20:58", "url": "https://files.pythonhosted.org/packages/1e/0b/a24ca69177f7ee5bde58d3e464cdd6e12ab13ad88c1fb339f47e8aa47cf9/mro-tools-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "08ca34fe1d0d0c54a89507783739031e", "sha256": "3ebaacc6fdc97ba0c8ee75f591c8e1932c4d97a63208a1ce1497577f863ace96" }, "downloads": -1, "filename": "mro_tools-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "08ca34fe1d0d0c54a89507783739031e", "packagetype": "bdist_wheel", "python_version": "3.7", "requires_python": null, "size": 8897, "upload_time": "2019-02-08T17:21:01", "url": "https://files.pythonhosted.org/packages/76/d1/56bc59ee2b982093bb58b0ebd52fa3c392aa989e8c79c770ac2278f9db46/mro_tools-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "417c2cdcd28ff207d63c991105a07fab", "sha256": "7fbb57d9f5980f15f90e9c074c2822618bfe2b59037b522762bf23df2566f898" }, "downloads": -1, "filename": "mro-tools-0.3.0.tar.gz", "has_sig": false, "md5_digest": "417c2cdcd28ff207d63c991105a07fab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6508, "upload_time": "2019-02-08T17:20:58", "url": "https://files.pythonhosted.org/packages/1e/0b/a24ca69177f7ee5bde58d3e464cdd6e12ab13ad88c1fb339f47e8aa47cf9/mro-tools-0.3.0.tar.gz" } ] }