{ "info": { "author": "Morteza Nourelahi Alamdari", "author_email": "me@mortezana.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "CMTimeOut\n=========\nPython ContextManager timeout handler library.\n\n\nInstall\n=======\n\n.. code-block:: shell\n\n $ pip install cmtimeout\n\n\nExamples\n========\n\nExample 1:\n\n.. code-block:: python\n\n from cmtimeout import CMTimeOut\n import time\n\n with CMTimeOut(2):\n time.sleep(3)\n print(\"this print never work!\")\n\n\nExample 2:\n\n.. code-block:: python\n\n from cmtimeout import CMTimeOut\n\n with CMTimeOut(2):\n with open(\"interface.fifo\", \"w\") as f:\n pass\n\n\nExample 3:\n\n.. code-block:: python\n\n from cmtimeout import CMTimeOut, CMTimeOutException\n\n try:\n with CMTimeOut(2, True):\n with open(\"interface.fifo\", \"w\") as f:\n pass\n except CMTimeOutException:\n print(\"opening file failed.\")\n\n\n**NOTE:** first argument (``second``) must be ``int``.\n\n**NOTE:** second argument enables or disables rasing exception when timeout exceeded.\n\n\nContribute\n==========\nKindly keep me posted in case of any issue or question by opening new file is issue_ page or send me a pull request.\n\n.. _issue: https://github.com/mortezaipo/cmtimeout/issues\n\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/mortezaipo/cmtimeout", "keywords": "context-manager", "license": "GPLv3.0", "maintainer": "", "maintainer_email": "", "name": "cmtimeout", "package_url": "https://pypi.org/project/cmtimeout/", "platform": "", "project_url": "https://pypi.org/project/cmtimeout/", "project_urls": { "Homepage": "https://github.com/mortezaipo/cmtimeout" }, "release_url": "https://pypi.org/project/cmtimeout/1.0.3/", "requires_dist": null, "requires_python": "", "summary": "Python ContextManager timeout handler library.", "version": "1.0.3" }, "last_serial": 3659770, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "2da0880c5bb12fc594986a3d727744a4", "sha256": "f7c4e73fb59bafadf683074cc5d87d6fd6d785a16b354314785f047b0a0d23a7" }, "downloads": -1, "filename": "cmtimeout-1.0.1.tar.gz", "has_sig": false, "md5_digest": "2da0880c5bb12fc594986a3d727744a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2081, "upload_time": "2018-03-11T21:35:21", "url": "https://files.pythonhosted.org/packages/e8/26/6b59d2a3dc268f9a4b268b4eafdd04a7ba092ee76422a86df97d922553ac/cmtimeout-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "ffb70c7045a3894eb0329021e6ea28f6", "sha256": "214fad3ce8cb68fdfedba0aabe7284ae3f6c05f2f62ba6f4bc44d38e595ba8e9" }, "downloads": -1, "filename": "cmtimeout-1.0.2.tar.gz", "has_sig": false, "md5_digest": "ffb70c7045a3894eb0329021e6ea28f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2227, "upload_time": "2018-03-11T21:46:21", "url": "https://files.pythonhosted.org/packages/ef/ee/6c0be7abab4bbe44b003b75c593e1d55f6788092c4d1d768145174afddc9/cmtimeout-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "e094b788302eb5c0d1094d4cb6228ed1", "sha256": "72e208ec25a0aa3af506390761128154bcdfe397f15de72db57d3cc9694c7ed7" }, "downloads": -1, "filename": "cmtimeout-1.0.3.tar.gz", "has_sig": false, "md5_digest": "e094b788302eb5c0d1094d4cb6228ed1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2224, "upload_time": "2018-03-11T21:58:43", "url": "https://files.pythonhosted.org/packages/69/a1/7508905bebf1192f52848d9b32c0f1c7ddafe683a03e7ff628820e3e451a/cmtimeout-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e094b788302eb5c0d1094d4cb6228ed1", "sha256": "72e208ec25a0aa3af506390761128154bcdfe397f15de72db57d3cc9694c7ed7" }, "downloads": -1, "filename": "cmtimeout-1.0.3.tar.gz", "has_sig": false, "md5_digest": "e094b788302eb5c0d1094d4cb6228ed1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2224, "upload_time": "2018-03-11T21:58:43", "url": "https://files.pythonhosted.org/packages/69/a1/7508905bebf1192f52848d9b32c0f1c7ddafe683a03e7ff628820e3e451a/cmtimeout-1.0.3.tar.gz" } ] }