{ "info": { "author": "Mario Dagrada", "author_email": "mariodagrada24@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "## Description\n\n*minjob* is a simple, purely Python library which allows to monitor Python threads and processes. It restarts the processes it monitors when a \nfatal exception occurs and can smoothly terminate them. \n\nThis small library provides a simple way for dealing with fatal \nexceptions when running simple multi-thread/multi-process applications \nwith high availability requirements such as market trading bots.\n\nBy default the library will print the logs of the failed jobs at\n`{HOME}/.minjob.log`.\n\n## Installation and Usage\n\nInstall the library within your favorite virtual environment or locally using:\n\n```bash\npip install minjob\n```\n\nA simple usage of the library for adding a monitored process and\nthread goes like this:\n\n```python\nfrom minjob.jobs import JobManager\n\ndef my_thread_func():\n do_some_work()\n\ndef my_process_func():\n do_other_work()\n\nmanager = JobManager(name=\"MyManager\")\nmanager.add_process(\"MyProcess\", target=my_process_func, daemonize=True)\nmanager.add_thread(\"MyThread\", target=my_thread_func, daemonize=True)\n\n# start all monitored jobs\nmanager.start_all()\n\n# stop all jobs\nmanager.stop_all()\n```\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/madagra/minjob", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "minjob", "package_url": "https://pypi.org/project/minjob/", "platform": "", "project_url": "https://pypi.org/project/minjob/", "project_urls": { "Homepage": "https://github.com/madagra/minjob" }, "release_url": "https://pypi.org/project/minjob/0.1.0/", "requires_dist": null, "requires_python": ">=3.7", "summary": "Minimal job monitor for multi-threaded Python applications", "version": "0.1.0" }, "last_serial": 5902493, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "eb4689d31db6ee0bd38a607437ddf6f3", "sha256": "726259f59746cb4ac3d97b2870764030d8760fc69f0bc8da47895997a6bf4e35" }, "downloads": -1, "filename": "minjob-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "eb4689d31db6ee0bd38a607437ddf6f3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 5790, "upload_time": "2019-09-29T12:14:04", "url": "https://files.pythonhosted.org/packages/11/63/dce0c5eb8648e5848eec365cc6db1ac18c6bc56c74449931453d65a1537a/minjob-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bf8295f108d3bb651bd0f44b23e066fc", "sha256": "3d9eef95e94ee7ca709e3719fd9ab7e83bae894cb8a2aa97298b3db3504d98ad" }, "downloads": -1, "filename": "minjob-0.1.0.tar.gz", "has_sig": false, "md5_digest": "bf8295f108d3bb651bd0f44b23e066fc", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 4385, "upload_time": "2019-09-29T12:14:08", "url": "https://files.pythonhosted.org/packages/42/31/a68bc0dc6a334e0a978b4cdbf0bb7568f650595feac6c48c8584971f1ed2/minjob-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "eb4689d31db6ee0bd38a607437ddf6f3", "sha256": "726259f59746cb4ac3d97b2870764030d8760fc69f0bc8da47895997a6bf4e35" }, "downloads": -1, "filename": "minjob-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "eb4689d31db6ee0bd38a607437ddf6f3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 5790, "upload_time": "2019-09-29T12:14:04", "url": "https://files.pythonhosted.org/packages/11/63/dce0c5eb8648e5848eec365cc6db1ac18c6bc56c74449931453d65a1537a/minjob-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bf8295f108d3bb651bd0f44b23e066fc", "sha256": "3d9eef95e94ee7ca709e3719fd9ab7e83bae894cb8a2aa97298b3db3504d98ad" }, "downloads": -1, "filename": "minjob-0.1.0.tar.gz", "has_sig": false, "md5_digest": "bf8295f108d3bb651bd0f44b23e066fc", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 4385, "upload_time": "2019-09-29T12:14:08", "url": "https://files.pythonhosted.org/packages/42/31/a68bc0dc6a334e0a978b4cdbf0bb7568f650595feac6c48c8584971f1ed2/minjob-0.1.0.tar.gz" } ] }