{ "info": { "author": "Barry Scott", "author_email": "barry@barrys-emacs.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Utilities" ], "description": "# ssh_wait module and ssh-wait command\n\n\n\n## ssh-wait command\n\n Usage: ssh-wait \n\n ssh-wait will wait for the service to be available\n on .\n\n --verbose\n - print progress messages\n --nowait\n - check once and exit 0 if can connect exit 1 if cannot\n --wait-limit=\n - exit 2 if service is not avaiable within seconds.\n defaults to 600.\n --service=\n - check the service . Can be a service\n name or a port number. Default is ssh.\n\n## ssh_wait module\n\nssh_wait module\n\n- `ssh_wait( host, service='ssh', wait=True, wait_limit=600, log_fn=print )`\n\nThe `ssh_wait` function waits for `host` to be available if 'wait` is True. Otherwise\nit will checks once and returns.\n\nThe return code to indicate status of the host:\n\n- 0 - success the host is accepting ssh connections\n- 1 - failed to connect to host\n- 2 - failed to connect within `wait_limit` seconds\n- 3 - `service` is not known\n\nThe `service` argument can be either the name of the service (as listed in `/etc/services`) or the port number.\n\nBy default `log_fn` is the print function and will be used to log messages.\nPass `None` for `log_fn` to surpress all messages.\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/barry-scott/CLI-tools", "keywords": "development", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "ssh-wait", "package_url": "https://pypi.org/project/ssh-wait/", "platform": "", "project_url": "https://pypi.org/project/ssh-wait/", "project_urls": { "Homepage": "https://github.com/barry-scott/CLI-tools" }, "release_url": "https://pypi.org/project/ssh-wait/1.0.1/", "requires_dist": [ "colour-text" ], "requires_python": "", "summary": "SSH wait", "version": "1.0.1" }, "last_serial": 5687243, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "e4edae65012b5fb7874ce8d640729fad", "sha256": "72eed3e12fda3c357c495a125b06f74f1127497b48ecca869baba1d760bddc75" }, "downloads": -1, "filename": "ssh_wait-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e4edae65012b5fb7874ce8d640729fad", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7846, "upload_time": "2019-08-11T14:09:33", "url": "https://files.pythonhosted.org/packages/b1/64/f893807b62e7cb4737e4136a362092c4b433ac2c086f442d618ee68d6efd/ssh_wait-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d25857f4254ca0b2773c40bd3717c8f6", "sha256": "2d11623329f2fd91396bdb4d4d75eef10aadbfdcd9e9de602fe0dba556233c47" }, "downloads": -1, "filename": "ssh-wait-1.0.0.tar.gz", "has_sig": false, "md5_digest": "d25857f4254ca0b2773c40bd3717c8f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3249, "upload_time": "2019-08-11T14:09:40", "url": "https://files.pythonhosted.org/packages/28/f6/a469b73dd49af36974303e9574fd59652ac85f4ebab7e62226704da9131d/ssh-wait-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "2028ac7bdc6b4386787a651e7e27c2ab", "sha256": "3adcab02a6e4e552ea0b8f0d4ce7791a47137c02d4c9120d866e88d5480831bc" }, "downloads": -1, "filename": "ssh_wait-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2028ac7bdc6b4386787a651e7e27c2ab", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8930, "upload_time": "2019-08-16T11:53:43", "url": "https://files.pythonhosted.org/packages/36/f6/26cfb6c136f6e151506d0d4563b76d4c784841832e3427fdcdbbc0401dc4/ssh_wait-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fc63bb3613cde86177c1cf832a6735e0", "sha256": "5e14bb0b78ab1719c543bc29d57e99bede0224de7ba8a4c776161903b489f3c6" }, "downloads": -1, "filename": "ssh-wait-1.0.1.tar.gz", "has_sig": false, "md5_digest": "fc63bb3613cde86177c1cf832a6735e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3274, "upload_time": "2019-08-16T11:53:49", "url": "https://files.pythonhosted.org/packages/a4/5c/a5ae10876134af229b17cf051f1f448a1f014bd35f7f2633db5ec0075696/ssh-wait-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2028ac7bdc6b4386787a651e7e27c2ab", "sha256": "3adcab02a6e4e552ea0b8f0d4ce7791a47137c02d4c9120d866e88d5480831bc" }, "downloads": -1, "filename": "ssh_wait-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2028ac7bdc6b4386787a651e7e27c2ab", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8930, "upload_time": "2019-08-16T11:53:43", "url": "https://files.pythonhosted.org/packages/36/f6/26cfb6c136f6e151506d0d4563b76d4c784841832e3427fdcdbbc0401dc4/ssh_wait-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fc63bb3613cde86177c1cf832a6735e0", "sha256": "5e14bb0b78ab1719c543bc29d57e99bede0224de7ba8a4c776161903b489f3c6" }, "downloads": -1, "filename": "ssh-wait-1.0.1.tar.gz", "has_sig": false, "md5_digest": "fc63bb3613cde86177c1cf832a6735e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3274, "upload_time": "2019-08-16T11:53:49", "url": "https://files.pythonhosted.org/packages/a4/5c/a5ae10876134af229b17cf051f1f448a1f014bd35f7f2633db5ec0075696/ssh-wait-1.0.1.tar.gz" } ] }