{ "info": { "author": "Brett Beatty", "author_email": "brettbeatty@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Wraptitude: wrap the results of your Python functions\n=====================================================\n\n.. image:: https://img.shields.io/circleci/project/github/brettbeatty/wraptitude.svg\n :target: https://circleci.com/gh/brettbeatty/wraptitude\n\n.. image:: https://img.shields.io/github/license/brettbeatty/wraptitude.svg\n :target: https://github.com/brettbeatty/wraptitude/blob/master/LICENSE\n\n.. image:: https://img.shields.io/codecov/c/github/brettbeatty/wraptitude.svg\n :target: https://codecov.io/gh/brettbeatty/wraptitude\n\n.. image:: https://img.shields.io/pypi/v/wraptitude.svg\n :target: https://pypi.org/project/wraptitude/\n\nWraptitude provides a decorator that wraps result of a function call in a call to another function.\n\n.. code-block:: python\n\n >>> from wraptitude import Wrapper\n >>> @Wrapper(dict)\n ... def f(x):\n ... for i in range(x):\n ... yield i, i ** 2\n ...\n >>> f(3)\n {0: 0, 1: 1, 2: 4}\n >>> @Wrapper(lambda x, y: x + y, 4)\n ... def g(x):\n ... return x * 5\n ...\n >>> g(2)\n 14\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/brettbeatty/wraptitude", "keywords": "wrapper", "license": "", "maintainer": "", "maintainer_email": "", "name": "wraptitude", "package_url": "https://pypi.org/project/wraptitude/", "platform": "", "project_url": "https://pypi.org/project/wraptitude/", "project_urls": { "Homepage": "https://github.com/brettbeatty/wraptitude" }, "release_url": "https://pypi.org/project/wraptitude/0.0.0/", "requires_dist": null, "requires_python": "", "summary": "Wrap the results of your Python functions", "version": "0.0.0" }, "last_serial": 3496461, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "99108cdaa3e81b793789aa187b047f87", "sha256": "6ce3985769ac0020af07fe9fb793c9643bddfee024334ed93e5cace7be867715" }, "downloads": -1, "filename": "wraptitude-0.0.0.tar.gz", "has_sig": false, "md5_digest": "99108cdaa3e81b793789aa187b047f87", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2179, "upload_time": "2018-01-17T08:17:55", "url": "https://files.pythonhosted.org/packages/67/a7/253a0a9c9661834bebd363f2c4f50b6093f258032f978e268c0041002eca/wraptitude-0.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "99108cdaa3e81b793789aa187b047f87", "sha256": "6ce3985769ac0020af07fe9fb793c9643bddfee024334ed93e5cace7be867715" }, "downloads": -1, "filename": "wraptitude-0.0.0.tar.gz", "has_sig": false, "md5_digest": "99108cdaa3e81b793789aa187b047f87", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2179, "upload_time": "2018-01-17T08:17:55", "url": "https://files.pythonhosted.org/packages/67/a7/253a0a9c9661834bebd363f2c4f50b6093f258032f978e268c0041002eca/wraptitude-0.0.0.tar.gz" } ] }