{ "info": { "author": "Martin H\u00e4cker, Robert Buchholz, Felix Schwarz", "author_email": "mhaecker@mac.com, rbu@rbu.sh, felix@schwarz-online.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: ISC License (ISCL)", "Programming Language :: Python :: 2", "Topic :: Software Development", "Topic :: Utilities" ], "description": "SimpleSuper |Build Status|\n==========================\n\nLicense: ISC - See LICENSE.txt file\n\nThis is a simple piece of code born out of our frustration with the\nrepetitiveness of calling overridden methods in python. having to write\n\n::\n\n super(TheCurrentClassThatImIn, self).the_method_that_im_currently_in(all, the, arguments, again)\n\nevery time you want to do that is just not DRY and makes refactoring\nthat much more tedious.\n\nWouldn't it be much cooler if you could just write self.super() instead?\nYeah, we thought so, too.\n\nIn the class where you want to use this (or any superclass), you need to\nmake the SuperProxy available like this:\n\n::\n\n class SuperClass(object):\n super = SuperProxy()\n\nAfterwards you can just use it in three forms in any method: -\nAuto-pick-up all available arguments and call the super method of the\ncurrent method\n\n::\n\n self.super()\n\n- Call super method of current method but with explicit arguments\n\n self.super(some\\_arguments)\n\n- Get a proxy for the superclass and call a specific method with\n specific arguments\n\n self.super.whatever\\_method(whatever, arguments)\n\n (self.super is the same as super(CurrentClass, self) but more DRY)\n\nKnown Bugs:\n-----------\n\n- Works only for object subclasses (new style classes)\n- Doesn't find super-methods of decorated methods as the code of the\n current method can't be found in the class object under the name of\n the method.\n\nTODO:\n-----\n\n- Find a way so you can do something like from simple\\_super import\n use\\_in\\_object to get every object enhanced by its niceness.\n\nChangelog:\n----------\n\n1.0.5 and 1.0.6, 1.0.7, 1.0.8, 1.0.9 (2016-09-07)\n\n- package for pypi to have an easy dependency\n- small cleanups to make it easier to step over this code in the\n debugger\n\n1.0.4 (2010-06-06)\n\n- Add heuristic to move arguments to kwargs if lower method has more\n named arguments than the upper method\n\n1.0.3 (2010-05-31)\n\n- Added compatibility for Python 3\n- Moved stand-alone functions into nice classes\n\n1.0.2 (2010-03-27)\n\n- Simplistic heuristic detection if self.super() or self.super(\\*args,\n \\*\\*kwargs) was called so we can pass the right parameters\n- Made simple\\_super compatible with Python 2.3 and old-style classes\n\n1.0.1\n\n- do not add arguments if subclass uses self.super() and super class\n does not get any arguments besides self.\n\n1.0\n\n- initial release\n\n.. |Build Status| image:: https://travis-ci.org/dwt/simplesuper.svg?branch=master\n :target: https://travis-ci.org/dwt/simplesuper", "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/dwt/simplesuper", "keywords": "python 2,super,convenience,api", "license": "ISC", "maintainer": null, "maintainer_email": null, "name": "simplesuper", "package_url": "https://pypi.org/project/simplesuper/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/simplesuper/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/dwt/simplesuper" }, "release_url": "https://pypi.org/project/simplesuper/1.0.9/", "requires_dist": null, "requires_python": null, "summary": "Simpler way to call super methods without all the repetition", "version": "1.0.9" }, "last_serial": 2329670, "releases": { "1.0.5": [ { "comment_text": "", "digests": { "md5": "a0b0ec20011d6b6958536b3b798a6973", "sha256": "63882a2aa27c35f4c8fab2d2e0ea93ba85092bd22d2447a06b0c6d98192dffa4" }, "downloads": -1, "filename": "simplesuper-1.0.5.tar.gz", "has_sig": false, "md5_digest": "a0b0ec20011d6b6958536b3b798a6973", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4880, "upload_time": "2016-09-07T14:20:10", "url": "https://files.pythonhosted.org/packages/0b/b6/7c44d0a4b760e030a4af7dc096ad9604730b66e9dd657f90b89d12cde983/simplesuper-1.0.5.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "97694a1c75e0d3aae7ac210ee0a10897", "sha256": "54b8c65b28d3e6b75f59400a1e038e62791f1619e7e8facfe76f09d148ba011c" }, "downloads": -1, "filename": "simplesuper-1.0.6.tar.gz", "has_sig": false, "md5_digest": "97694a1c75e0d3aae7ac210ee0a10897", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5180, "upload_time": "2016-09-07T14:30:50", "url": "https://files.pythonhosted.org/packages/40/26/07bf52efa1ef04a5763995c1423ab0ec2d42bcd3e04a7cea43266a15a629/simplesuper-1.0.6.tar.gz" } ], "1.0.7": [ { "comment_text": "", "digests": { "md5": "99cebeaee184c92e1c0635adbccfb85e", "sha256": "2a5dd9fddb9310a1a94f7396e2ddd2a347c821d6dca12c5169f1c4a9639e922d" }, "downloads": -1, "filename": "simplesuper-1.0.7.tar.gz", "has_sig": false, "md5_digest": "99cebeaee184c92e1c0635adbccfb85e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5279, "upload_time": "2016-09-07T14:33:33", "url": "https://files.pythonhosted.org/packages/be/47/b57671ea49a02c516151f118e8b8d98b8c148e240e71c6e967412a9c7d9f/simplesuper-1.0.7.tar.gz" } ], "1.0.8": [ { "comment_text": "", "digests": { "md5": "c6c30d3a9094cd887a4020d0cf3b4a7b", "sha256": "181142e20bd0d01679d0fdf8a69b314efaf7a42371da949413a8c44798fd597d" }, "downloads": -1, "filename": "simplesuper-1.0.8.tar.gz", "has_sig": false, "md5_digest": "c6c30d3a9094cd887a4020d0cf3b4a7b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6160, "upload_time": "2016-09-07T15:12:24", "url": "https://files.pythonhosted.org/packages/18/77/ff1eb345e5a1fd3b3449f7fe6fce84b378cb08e0d805b6ed431d414be123/simplesuper-1.0.8.tar.gz" } ], "1.0.9": [ { "comment_text": "", "digests": { "md5": "f7fb4ba4478a990827d84bef4d0e778a", "sha256": "821390137a79300f1fb83423ba3fdcaa343a725859681643b8d5b84e15aecbeb" }, "downloads": -1, "filename": "simplesuper-1.0.9.tar.gz", "has_sig": false, "md5_digest": "f7fb4ba4478a990827d84bef4d0e778a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6147, "upload_time": "2016-09-07T15:16:54", "url": "https://files.pythonhosted.org/packages/a5/0c/f3c18528a12421aa5b6b1676dfcebf1d3496ddd0dd391ba932fc580a5746/simplesuper-1.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f7fb4ba4478a990827d84bef4d0e778a", "sha256": "821390137a79300f1fb83423ba3fdcaa343a725859681643b8d5b84e15aecbeb" }, "downloads": -1, "filename": "simplesuper-1.0.9.tar.gz", "has_sig": false, "md5_digest": "f7fb4ba4478a990827d84bef4d0e778a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6147, "upload_time": "2016-09-07T15:16:54", "url": "https://files.pythonhosted.org/packages/a5/0c/f3c18528a12421aa5b6b1676dfcebf1d3496ddd0dd391ba932fc580a5746/simplesuper-1.0.9.tar.gz" } ] }