{ "info": { "author": "Ryan Kelly", "author_email": "ryan@rfk.id.au", "bugtrack_url": null, "classifiers": [], "description": "withhacks: building blocks for with-statement-related hackery\n\nThis module is a collection of useful building-blocks for hacking the Python\n\"with\" statement. It combines ideas from several neat with-statement hacks \nI found around the internet into a suite of re-usable components:\n\n * http://www.mechanicalcat.net/richard/log/Python/Something_I_m_working_on.3\n * http://billmill.org/multi_line_lambdas.html\n * http://code.google.com/p/ouspg/wiki/AnonymousBlocksInPython\n\nBy subclassing the appropriate context managers from this module, you can\neasily do things such as:\n\n * skip execution of the code inside the with-statement\n * set local variables in the frame executing the with-statement\n * capture the bytecode from inside the with-statement\n * capture local variables defined inside the with-statement\n\nBuilding on these basic tools, this module also provides some useful prebuilt\nhacks:\n\n :xargs: call a function with additional arguments defined in the\n body of the with-statement\n :xkwargs: call a function with additional keyword arguments defined\n in the body of the with-statement\n :namespace: direct all variable accesses and assignments to the attributes\n of a given object (like \"with\" in JavaScript or VB)\n :keyspace: direct all variable accesses and assignments to the keys of\n of a given object (like namespace() but for dicts)\n\nWithHacks makes extensive use of Noam Raphael's fantastic \"byteplay\" module;\nsince the official byteplay distribution doesn't support Python 2.6, a local\nversion with appropriate patches is included in this module.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/rfk/withhacks", "keywords": "context manager with statement", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "withhacks", "package_url": "https://pypi.org/project/withhacks/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/withhacks/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/rfk/withhacks" }, "release_url": "https://pypi.org/project/withhacks/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "building blocks for with-statement-related hackery", "version": "0.1.1" }, "last_serial": 801690, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e90b51b8411c95e684aadf94d5bdc4f8", "sha256": "598f0d36e26cffa1e5b3386ab071cfc0cbafd3bdb3dce146e90e4a6cb1896c8b" }, "downloads": -1, "filename": "withhacks-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e90b51b8411c95e684aadf94d5bdc4f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16143, "upload_time": "2010-01-20T04:17:37", "url": "https://files.pythonhosted.org/packages/37/d1/5f84a8e5b75013ae62834c3c0ff225734719faf03e8aa9dbf583a61b4790/withhacks-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "41dde44241b07b2a2e1eed3d60874c1c", "sha256": "75c87de051d61dde59bc7e7f861fdf1687c495a79cf3cf8ee2d70243403576e2" }, "downloads": -1, "filename": "withhacks-0.1.1.tar.gz", "has_sig": false, "md5_digest": "41dde44241b07b2a2e1eed3d60874c1c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18049, "upload_time": "2010-01-22T13:47:37", "url": "https://files.pythonhosted.org/packages/16/85/7483d29784c086e07c313df1a659a0450a8cb6ff4c34630656484c72c87c/withhacks-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "41dde44241b07b2a2e1eed3d60874c1c", "sha256": "75c87de051d61dde59bc7e7f861fdf1687c495a79cf3cf8ee2d70243403576e2" }, "downloads": -1, "filename": "withhacks-0.1.1.tar.gz", "has_sig": false, "md5_digest": "41dde44241b07b2a2e1eed3d60874c1c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18049, "upload_time": "2010-01-22T13:47:37", "url": "https://files.pythonhosted.org/packages/16/85/7483d29784c086e07c313df1a659a0450a8cb6ff4c34630656484c72c87c/withhacks-0.1.1.tar.gz" } ] }