{ "info": { "author": "Adam Lewis", "author_email": "aclewis182@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "=======\nqThread\n=======\n\nqThread provides an simplified and safe way to stop long running \nthreads. Typical uses often look like this::\n\n # Test / Usage of the stoppable thread\n class MyThreadingClass(StoppableThread):\n def __init__(self, a):\n super(MyThreadingClass, self).__init__()\n self.a = a\n self.b = \"World\"\n self.delay = .5 # seconds\n \n def startup(self):\n # Overload the startup function\n print \"My Thread Starting Up...\"\n \n def cleanup(self):\n # Overload the cleanup function\n print \"My Thread Is Shutting Down...\"\n # Close files, ports, etc...\n time.sleep(4)\n print \"Cleanup Complete!\"\n \n def mainloop(self):\n # Some routine to be called over and over\n # ie: reading ports or sockets\n print self.a + \" \" + self.b\n\n # Throttling needs to be done here if the\n # primary function is not blocking\n time.sleep(self.delay)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/qThread/", "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "qThread", "package_url": "https://pypi.org/project/qThread/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/qThread/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/qThread/" }, "release_url": "https://pypi.org/project/qThread/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Generic stoppable thread", "version": "0.1.0" }, "last_serial": 798298, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "90312847ec278012918857253418e064", "sha256": "e68bcae9c4a1805cf0b82c26b41acaf6f59dda5c5f9f51210b5e9a04af91e5af" }, "downloads": -1, "filename": "qThread-0.1.0.tar.gz", "has_sig": false, "md5_digest": "90312847ec278012918857253418e064", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2611, "upload_time": "2013-04-12T07:09:25", "url": "https://files.pythonhosted.org/packages/4a/5c/55b69294eab63a7713c07d432b813f6091f0723d8277783439454739cd14/qThread-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "90312847ec278012918857253418e064", "sha256": "e68bcae9c4a1805cf0b82c26b41acaf6f59dda5c5f9f51210b5e9a04af91e5af" }, "downloads": -1, "filename": "qThread-0.1.0.tar.gz", "has_sig": false, "md5_digest": "90312847ec278012918857253418e064", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2611, "upload_time": "2013-04-12T07:09:25", "url": "https://files.pythonhosted.org/packages/4a/5c/55b69294eab63a7713c07d432b813f6091f0723d8277783439454739cd14/qThread-0.1.0.tar.gz" } ] }