{ "info": { "author": "Bystroushaak", "author_email": "bystrousak@kitakitsune.org", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7" ], "description": "Timeout wrapper\n===============\n\n.. image:: https://badge.fury.io/py/timeout_wrapper.png\n :target: http://badge.fury.io/py/timeout_wrapper\n\n.. image:: https://pypip.in/d/timeout_wrapper/badge.png\n :target: https://pypi.python.org/pypi/timeout_wrapper\n\n\nTimeout decorator with defaults and exceptions.\n\nDocumentation\n-------------\n\nUsage of this decorator is really simple - to set the timeout, just add\n``@timeout(time)`` decorator to your function definition::\n\n @timeout(3) # 3 seconds\n def myfunc(..):\n ..\n\nIf the ``myfunc()`` call timeouts, ``TimeoutException`` is raised.\n\nOptionally, you can also set your own message for exception::\n\n @timeout(3, exception_message=\"Oh noez\")\n def myfunc(..):\n ..\n\nor use default value, instead of exception::\n\n @timeout(3, False):\n def myfunc(..):\n ..\n\nThats all.\n\nChangelog\n=========\n\n\n\n0.1.0\n-----\n - Project created.", "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/Bystroushaak/timeout_wrapper", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "timeout_wrapper", "package_url": "https://pypi.org/project/timeout_wrapper/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/timeout_wrapper/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Bystroushaak/timeout_wrapper" }, "release_url": "https://pypi.org/project/timeout_wrapper/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Timeout decorator with defaults and exceptions.", "version": "0.1.0" }, "last_serial": 1361697, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "ab4d2d26bcd8acb6eb5c3b926294a7b1", "sha256": "9a4430d0f1664ad55c64e22e3cf113214cbfe7292a41632cbf4c88dcb52fde20" }, "downloads": -1, "filename": "timeout_wrapper-0.1.0.tar.gz", "has_sig": false, "md5_digest": "ab4d2d26bcd8acb6eb5c3b926294a7b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3611, "upload_time": "2014-12-27T00:06:42", "url": "https://files.pythonhosted.org/packages/c9/cb/a5353866b8c11b500ee38f2cf200b353ca556c69009e543ed48603a26a32/timeout_wrapper-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ab4d2d26bcd8acb6eb5c3b926294a7b1", "sha256": "9a4430d0f1664ad55c64e22e3cf113214cbfe7292a41632cbf4c88dcb52fde20" }, "downloads": -1, "filename": "timeout_wrapper-0.1.0.tar.gz", "has_sig": false, "md5_digest": "ab4d2d26bcd8acb6eb5c3b926294a7b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3611, "upload_time": "2014-12-27T00:06:42", "url": "https://files.pythonhosted.org/packages/c9/cb/a5353866b8c11b500ee38f2cf200b353ca556c69009e543ed48603a26a32/timeout_wrapper-0.1.0.tar.gz" } ] }