{ "info": { "author": "Malthe Borch", "author_email": "mborch@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Topic :: Software Development :: Quality Assurance", "Topic :: Utilities" ], "description": "Overview\n--------\n\nProvides tools for guerilla (monkey)-patching.\n\nThe package provides two methods, ``patch`` and ``wrap``, that are\nused to decorate the patch method.\n\nPatching is only allowed if a signature on the original method is\nprovided. Multiple signatures can be provided corresponding to various\nbona fide versions of the method.\n\nUsage\n-----\n\n >>> from monkey import patch, wrap\n\nA patch completely replaces the original method.\n \n >>> @patch(Module.existing_method, *method_signatures)\n ... def some_patch(*args):\n ... pass\n\n >>> Module.existing_method = some_patch\n\nA wrap gets the original method passed as the first argument.\n\n >>> @wrap(Module.existing_method, *method_signatures)\n ... def some_wrap(func, *args):\n ... pass\n\n >>> Module.existing_method = some_wrap\n\nSee the inline doctests for more information.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": "", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "monkey", "package_url": "https://pypi.org/project/monkey/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/monkey/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/monkey/0.1/", "requires_dist": null, "requires_python": null, "summary": "A package that provides tools for guerilla (monkey)-patching.", "version": "0.1" }, "last_serial": 794967, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "a19888a3e3fe507d67a6dc094077ac8f", "sha256": "549761aac2a1af46b6470efcb0023b3ca5449c854f97d7ac26edbd748a2d66e8" }, "downloads": -1, "filename": "monkey-0.1.tar.gz", "has_sig": false, "md5_digest": "a19888a3e3fe507d67a6dc094077ac8f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2620, "upload_time": "2008-02-22T13:03:16", "url": "https://files.pythonhosted.org/packages/6f/e4/bf774e5a7511763bb06cd30beeabbd2ad3235b62f0197a404f59e9044fc1/monkey-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a19888a3e3fe507d67a6dc094077ac8f", "sha256": "549761aac2a1af46b6470efcb0023b3ca5449c854f97d7ac26edbd748a2d66e8" }, "downloads": -1, "filename": "monkey-0.1.tar.gz", "has_sig": false, "md5_digest": "a19888a3e3fe507d67a6dc094077ac8f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2620, "upload_time": "2008-02-22T13:03:16", "url": "https://files.pythonhosted.org/packages/6f/e4/bf774e5a7511763bb06cd30beeabbd2ad3235b62f0197a404f59e9044fc1/monkey-0.1.tar.gz" } ] }