{ "info": { "author": "Alberto Galera Jimenez", "author_email": "agalera@globalstudio.es", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "|pythonversions| |License|\n\nTimekiller\n==========\n\nIt lets call any function with a timeout!\n\nInstall\n-------\n\n.. code:: bash\n\n pip install timekiller\n\nLink pypi: https://pypi.python.org/pypi/timekiller\n\nExample\n-------\n\nCall function\n-------------\n\n.. code:: python\n\n import timekiller\n import time\n\n\n def long_function(foo, bar):\n while True:\n time.sleep(10)\n print(foo, bar)\n\n # call(func, max_time, *args, **kwargs)\n timekiller.call(long_function, 5, \"woo\", bar=\"Uhmm\")\n\n\n @timekiller.timeout(5)\n def long_function_with_decorator(foo, bar)\n while True:\n time.sleep(10)\n print(foo, bar)\n\n long_function_with_decorator(\"woo\", \"Uhmm\")\n\nCapture exception\n-----------------\n\n.. code:: python\n\n import timekiller\n import time\n\n\n @timeout(1)\n def long_function():\n try:\n time.sleep(10)\n except timekiller.TimeoutException:\n print(\"capture exception\")\n\n long_function()\n\nTODO: - It works in main thread and processes (not work in threads)\n\n.. |pythonversions| image:: https://img.shields.io/pypi/pyversions/timekiller.svg\n :target: https://pypi.python.org/pypi/timekiller\n.. |License| image:: https://img.shields.io/pypi/l/timekiller.svg\n :target: https://opensource.org/licenses/MIT\n\n\nCHANGELOG\n=========\n\n0.0.3 (2016-06-15)\n------------------\n\n- Fix manifest.in\n- Fix pip install version\n\n0.0.2 (2016-06-15)\n------------------\n\n- Fix raise exception\n\n0.0.1 (2016-06-14)\n------------------\n\n- Initial version", "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/GlobalStudioES/timekiller", "keywords": "timekiller", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "timekiller", "package_url": "https://pypi.org/project/timekiller/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/timekiller/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/GlobalStudioES/timekiller" }, "release_url": "https://pypi.org/project/timekiller/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "It lets call any function with a timeout", "version": "0.0.3" }, "last_serial": 2166373, "releases": { "0.0.1": [], "0.0.2": [ { "comment_text": "", "digests": { "md5": "9ff440fe9c50c5954ea4b76662288534", "sha256": "146b6f1c8dedc0b05654cc863363996868684621c9b84164963c617a6e496988" }, "downloads": -1, "filename": "timekiller-0.0.2.tar.gz", "has_sig": false, "md5_digest": "9ff440fe9c50c5954ea4b76662288534", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2226, "upload_time": "2016-06-14T08:52:58", "url": "https://files.pythonhosted.org/packages/f8/2d/d5adb756f24fc563d0482d2aac9029242ba44d5a7bcd7a0b21862b5e4c0e/timekiller-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "9d57ff820ca9fbb8744b12333585f932", "sha256": "2e00c4664979637a75bc5a6cbc4ab9ed0b9116c68fa3b386d9d397b8bcd32882" }, "downloads": -1, "filename": "timekiller-0.0.3.tar.gz", "has_sig": false, "md5_digest": "9d57ff820ca9fbb8744b12333585f932", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2525, "upload_time": "2016-06-14T11:21:26", "url": "https://files.pythonhosted.org/packages/6b/69/c7358534a058fce60ba583c150671faee428603685a0a8978397b9d6abf9/timekiller-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9d57ff820ca9fbb8744b12333585f932", "sha256": "2e00c4664979637a75bc5a6cbc4ab9ed0b9116c68fa3b386d9d397b8bcd32882" }, "downloads": -1, "filename": "timekiller-0.0.3.tar.gz", "has_sig": false, "md5_digest": "9d57ff820ca9fbb8744b12333585f932", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2525, "upload_time": "2016-06-14T11:21:26", "url": "https://files.pythonhosted.org/packages/6b/69/c7358534a058fce60ba583c150671faee428603685a0a8978397b9d6abf9/timekiller-0.0.3.tar.gz" } ] }