{ "info": { "author": "Henry S. Harrison", "author_email": "henry.schafer.harrison@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Utilities" ], "description": "``smartcompose``: Easy delegation with composition\n==================================================\n\nDecorate a class with ``@delegate(attribute_name, method_names)``\nto delegate the methods in ``method_names`` to the attribute ``attribute_name``:\n\n.. code:: python\n\n In [1]: from smartcompose import delegate\n\n In [2]: @delegate('_n', ('__add__', '__mul__'))\n ...: class NumberWrapper:\n ...: def __init__(self, n):\n ...: self._n = n\n ...: \n\n In [3]: n = NumberWrapper(10) \n\n In [4]: n + 2\n Out[4]: 12 \n\n In [5]: n * 3\n Out[5]: 30\n\n\nFor now, only compatible with Python 3.\n\n::\n\n pip install smartcompose", "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/hsharrison/smartcompose", "keywords": "composition delegation delegate compose", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "smartcompose", "package_url": "https://pypi.org/project/smartcompose/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/smartcompose/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/hsharrison/smartcompose" }, "release_url": "https://pypi.org/project/smartcompose/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "Easy delegation with composition", "version": "0.1.2" }, "last_serial": 1151591, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e4568a843ec0e40c60a1e888dd36f66d", "sha256": "759f600c89672bbafcbeedf3f975be3a12a6d0bcc6088ec53bbaeb4ec4d2ab5b" }, "downloads": -1, "filename": "smartcompose-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e4568a843ec0e40c60a1e888dd36f66d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2586, "upload_time": "2014-06-03T00:33:26", "url": "https://files.pythonhosted.org/packages/9a/e1/5efff073a9099cb1ef7378a7ee3f1600df784c0a46f3bc8b401537e8e310/smartcompose-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "30d7335187fd3e03c61af1daaf786c6d", "sha256": "0f9b6129d0abb155a90df423421d71057c2d274a8b0b961abed88caa23e7262c" }, "downloads": -1, "filename": "smartcompose-0.1.1.tar.gz", "has_sig": false, "md5_digest": "30d7335187fd3e03c61af1daaf786c6d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2609, "upload_time": "2014-06-03T22:21:46", "url": "https://files.pythonhosted.org/packages/16/1c/18ce9a85c4be0fd65216bc02f01ada877bb5fc3b43ef576387908514e32f/smartcompose-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "20dc5d087c71e864d5b90a2804299a0b", "sha256": "410af7f77b3b71e0edfd47f391f7487817ca08d7b5e7c05d44d613ff881b0b22" }, "downloads": -1, "filename": "smartcompose-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "20dc5d087c71e864d5b90a2804299a0b", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 4619, "upload_time": "2014-07-08T22:29:08", "url": "https://files.pythonhosted.org/packages/1b/b9/3c9e2e502706f28ae5209114c878210ec1561594c3b1a09ca11524bc8272/smartcompose-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bec33b989c2d5bb0b280c26d2055ee87", "sha256": "07f8100587dd9a3992c3d570ef637544aa7361e0d9ed35ccaa5b6ac80652d9c4" }, "downloads": -1, "filename": "smartcompose-0.1.2.zip", "has_sig": false, "md5_digest": "bec33b989c2d5bb0b280c26d2055ee87", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6465, "upload_time": "2014-06-13T15:04:21", "url": "https://files.pythonhosted.org/packages/39/22/88d2bec7586da4c492c44a1625959d725a64af56bdc12e377b9f603409e5/smartcompose-0.1.2.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "20dc5d087c71e864d5b90a2804299a0b", "sha256": "410af7f77b3b71e0edfd47f391f7487817ca08d7b5e7c05d44d613ff881b0b22" }, "downloads": -1, "filename": "smartcompose-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "20dc5d087c71e864d5b90a2804299a0b", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 4619, "upload_time": "2014-07-08T22:29:08", "url": "https://files.pythonhosted.org/packages/1b/b9/3c9e2e502706f28ae5209114c878210ec1561594c3b1a09ca11524bc8272/smartcompose-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bec33b989c2d5bb0b280c26d2055ee87", "sha256": "07f8100587dd9a3992c3d570ef637544aa7361e0d9ed35ccaa5b6ac80652d9c4" }, "downloads": -1, "filename": "smartcompose-0.1.2.zip", "has_sig": false, "md5_digest": "bec33b989c2d5bb0b280c26d2055ee87", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6465, "upload_time": "2014-06-13T15:04:21", "url": "https://files.pythonhosted.org/packages/39/22/88d2bec7586da4c492c44a1625959d725a64af56bdc12e377b9f603409e5/smartcompose-0.1.2.zip" } ] }