{ "info": { "author": "Travis Clarke", "author_email": "travis.m.clarke@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: POSIX", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# [wait-for-it](https://wait-for-it.readthedocs.io/en/latest/)\n\n[![PyPi release](https://img.shields.io/pypi/v/wait-for-it.svg)](https://pypi.org/project/wait-for-it/)\n[![PyPi versions](https://img.shields.io/pypi/pyversions/wait-for-it.svg)](https://pypi.org/project/wait-for-it/)\n[![Downloads](https://pepy.tech/badge/wait-for-it)](https://pepy.tech/project/wait-for-it)\n[![Documentation Status](https://readthedocs.org/projects/wait-for-it/badge/?version=latest)](https://wait-for-it.readthedocs.io/en/latest/?badge=latest)\n\nWait for service(s) to be available before executing a command.\n\n
\n\n

\n
\n\n\n`wait-for-it` is a script that will wait on the availability of one or more TCP services (i.e. `host:port`) before executing a user-defined command.\nIt is useful for synchronizing the spin-up of interdependent services, such as linked docker containers.\n\n[Check out the wait-for-it docs](https://wait-for-it.readthedocs.io/en/latest/)\n\n## Installation\n\n```bash\n$ pip install wait-for-it\n```\n\n## Demo\n![usage demo](https://raw.githubusercontent.com/clarketm/wait-for-it/master/usage.gif)\n\n## Usage\n```text\nUsage: wait-for-it [OPTIONS] [COMMANDS]...\n\n Wait for service(s) to be available before executing a command.\n\nOptions:\n -h, --help Show this message and exit.\n -v, --version Show the version and exit.\n -q, --quiet Do not output any status messages\n -s, --service host:port Services to test, in the format host:port\n -t, --timeout seconds Timeout in seconds, 0 for no timeout [default: 15]\n```\n\n## Examples\n\nTest to see if we can access port 80 on www.google.com, and if it is available, echo the message **google is up**:\n\n```bash\n$ wait-for-it \\\n--service www.google.com:80 \\\n-- echo \"google is up\"\n```\n\n```text\nwaiting 15 seconds for www.google.com:80\nwww.google.com:80 is available after 0 seconds\ngoogle is up\n```\n\nYou can set your own timeout with the `-t` or `--timeout` option. Setting the timeout value to **0** will disable the timeout:\n\n```bash\n$ wait-for-it \\\n--service www.google.com:80 \\\n--timeout 0 \\\n-- echo \"google is up\"\n```\n\n```text\nwaiting for www.google.com:80 without a timeout\nwww.google.com:80 is available after 0 seconds\ngoogle is up\n```\n\nMultiple services can be tested by adding additional `-s` or `--service` options:\n\n```bash\n$ wait-for-it \\\n--service www.google.com:80 \\\n--service www.bing.com:80 \\\n--service www.duckduckgo.com:80 \\\n-- echo \"google, bing, and duckduckgo are up\"\n```\n\n```text\nwaiting 15 seconds for www.google.com:80\nwww.google.com:80 is available after 0 seconds\nwaiting 15 seconds for www.bing.com:80\nwww.bing.com:80 is available after 0 seconds\nwaiting 15 seconds for www.duckduckgo.com:80\nwww.duckduckgo.com:80 is available after 0 seconds\ngoogle, bing, and duckduckgo are up\n```\n\nStatus message output can be suppressed with the `-q` or `--quiet` option:\n\n```bash\n$ wait-for-it \\\n--quiet \\\n--service www.google.com:80 \\\n-- echo \"google is up\"\n```\n\n```text\ngoogle is up\n```\n\n## Related\n* [vishnubob/wait-for-it](https://github.com/vishnubob/wait-for-it)\n\n## License\n\nMIT © [**Travis Clarke**](https://blog.travismclarke.com/)\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/clarketm/wait-for-it", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "wait-for-it", "package_url": "https://pypi.org/project/wait-for-it/", "platform": "", "project_url": "https://pypi.org/project/wait-for-it/", "project_urls": { "Homepage": "https://github.com/clarketm/wait-for-it" }, "release_url": "https://pypi.org/project/wait-for-it/1.1.2/", "requires_dist": [ "click" ], "requires_python": ">=3.6", "summary": "Wait for service(s) to be available before executing a command.", "version": "1.1.2" }, "last_serial": 4804019, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "bb75f05f8820bacbac36f08c1fdff19f", "sha256": "7dd2b218c88ebf8be60d0af3950dd171c29fbea16ac288dead07e9330a90c74e" }, "downloads": -1, "filename": "wait_for_it-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "bb75f05f8820bacbac36f08c1fdff19f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3358, "upload_time": "2018-10-01T08:41:48", "url": "https://files.pythonhosted.org/packages/07/4d/56eca8d578250f2646bac218c3c4c614c453d0626c263d63a7dfbbbd2a54/wait_for_it-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8b723e44ea427d7f30ceae67036e066c", "sha256": "9f30fb515474782d065bd1fce071f8574457368981e0aa2c906cd0270d1dc946" }, "downloads": -1, "filename": "wait-for-it-0.0.1.tar.gz", "has_sig": false, "md5_digest": "8b723e44ea427d7f30ceae67036e066c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2993, "upload_time": "2018-10-01T08:41:49", "url": "https://files.pythonhosted.org/packages/75/31/6f9920e07f766a459970e946a349a35f09f0e7135ce57ec24d32e3171107/wait-for-it-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "71a560027c5716ab0162bb9d668ef75c", "sha256": "412bc0da856cfff340277763687a7ca59ca6122998a28fb3afefcb3a4c32e599" }, "downloads": -1, "filename": "wait_for_it-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "71a560027c5716ab0162bb9d668ef75c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3477, "upload_time": "2018-10-02T06:07:30", "url": "https://files.pythonhosted.org/packages/bf/09/15b1f2337e4ad2b470ec5d368aede8c787060c1cf7b541812b029a9297c9/wait_for_it-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4a984f5a032e84ac271c254c3fbf8dd4", "sha256": "6d870bd16caea9a32e1ffa3c49b863959663fd5959f0fe0ecbff4a40060647b3" }, "downloads": -1, "filename": "wait-for-it-0.0.2.tar.gz", "has_sig": false, "md5_digest": "4a984f5a032e84ac271c254c3fbf8dd4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3142, "upload_time": "2018-10-02T06:07:31", "url": "https://files.pythonhosted.org/packages/04/2b/30e8fc443c9481732f8dc3adb0fc8215718c0451f3b0ec3bf4bed8311030/wait-for-it-0.0.2.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "43836bcef85bff3db22658d3e4daf71e", "sha256": "5ac5ac908c4b868c4c7df7c6d96a8b6c65cca6a4a25c5573fc85406c376c6ad0" }, "downloads": -1, "filename": "wait_for_it-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "43836bcef85bff3db22658d3e4daf71e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4303, "upload_time": "2018-12-02T08:28:43", "url": "https://files.pythonhosted.org/packages/15/80/f1f96e8ad6a9e6aaf02011a05833dacbdab98fbac8d011587d76e3e18dbe/wait_for_it-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "25d62728d1c3b563a643a9594fd1469f", "sha256": "aeb2f02e462f09d57880a952bfa850ffec37da2054177f47d3f0406a54b83469" }, "downloads": -1, "filename": "wait-for-it-1.0.0.tar.gz", "has_sig": false, "md5_digest": "25d62728d1c3b563a643a9594fd1469f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3156, "upload_time": "2018-12-02T08:28:45", "url": "https://files.pythonhosted.org/packages/d2/94/2eb2a6e439655d5b5b6089b2599adc80443b0f4234d344618531aa15875e/wait-for-it-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "8a7717ad1b74b310580c04829821356a", "sha256": "b0f6cb745f19511edc6a1341536fec4882f07d56e6f3a061615e8861fdabaec1" }, "downloads": -1, "filename": "wait_for_it-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "8a7717ad1b74b310580c04829821356a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4396, "upload_time": "2019-01-14T22:30:39", "url": "https://files.pythonhosted.org/packages/1b/2f/ea794bec0e3c84c8cab82d724ad851a91c727863919286147c4b94043f70/wait_for_it-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "90ec70b8b0128a9c4aeae19ce2ae17d6", "sha256": "b3a75972d8843b70949044ff770a9321f0d0a26536bf7c2c451534be92d47524" }, "downloads": -1, "filename": "wait-for-it-1.0.1.tar.gz", "has_sig": false, "md5_digest": "90ec70b8b0128a9c4aeae19ce2ae17d6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3270, "upload_time": "2019-01-14T22:30:41", "url": "https://files.pythonhosted.org/packages/36/36/fac7f0aafb89dc123947f3cac6c5eac9d158452913999c857d0ecc9aa970/wait-for-it-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "0513513178055adbca7ba3378694d1c6", "sha256": "7602823459ea306f393386ea135e6e961c8cd777c10fb9a31f02c28bcafece1d" }, "downloads": -1, "filename": "wait_for_it-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "0513513178055adbca7ba3378694d1c6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4616, "upload_time": "2019-01-14T23:18:16", "url": "https://files.pythonhosted.org/packages/21/8d/6e8d86ae31216c89de4ccb3ea426dc7e966662b1c1b245a2f9eb3fff7938/wait_for_it-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7b980517037226e0f64196d21ae533b9", "sha256": "1273ec5e36bf3729b517c2042905e30e0fe17de9f33238d6b7fe1b14007443c1" }, "downloads": -1, "filename": "wait-for-it-1.0.2.tar.gz", "has_sig": false, "md5_digest": "7b980517037226e0f64196d21ae533b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3325, "upload_time": "2019-01-14T23:18:18", "url": "https://files.pythonhosted.org/packages/5e/b8/4f79e6c7a616bc1ace548d9487c955908553658921ffd8859b4515eefa44/wait-for-it-1.0.2.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "b30d5a1c837f3d84180b876abf11ccce", "sha256": "85f153346b372b838012133eaeddb30636fe89e30cfdf1f3080af8a1c1d827cb" }, "downloads": -1, "filename": "wait_for_it-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "b30d5a1c837f3d84180b876abf11ccce", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4819, "upload_time": "2019-01-14T23:29:10", "url": "https://files.pythonhosted.org/packages/f9/93/40b9abe627ba563f2337c2d0c8311a90c433c7e1e2f1f4956dbab359f0a7/wait_for_it-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "440125a5d5081ca0fbb33653e0fe658e", "sha256": "856b50fd859ef03e2c583da6f63bc1e93e5f4c7433098b4e557f2af5a8e7ca0b" }, "downloads": -1, "filename": "wait-for-it-1.1.0.tar.gz", "has_sig": false, "md5_digest": "440125a5d5081ca0fbb33653e0fe658e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3357, "upload_time": "2019-01-14T23:29:11", "url": "https://files.pythonhosted.org/packages/69/dc/a91e853e8f733429d408d34c49a5adfcfc0631da57a435a05149e6b43add/wait-for-it-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "f3520deac04f92bc3fbd000b1bf7e264", "sha256": "dcdbea838d3d0df7601b4b0029179b4b2ed0723d7cfaff272fce72287727a32b" }, "downloads": -1, "filename": "wait_for_it-1.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f3520deac04f92bc3fbd000b1bf7e264", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4850, "upload_time": "2019-01-20T08:34:29", "url": "https://files.pythonhosted.org/packages/be/e3/9e00176f73a2b33bf01367e346e624dea9549c48dc403597deea44e597b9/wait_for_it-1.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "efb166a3718c83773d8f2b9ac1cd051f", "sha256": "871816ab4480e88534a9da7fc510221fdb24ae8cd38d5fdb8eef99571fa11d03" }, "downloads": -1, "filename": "wait-for-it-1.1.1.tar.gz", "has_sig": false, "md5_digest": "efb166a3718c83773d8f2b9ac1cd051f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3395, "upload_time": "2019-01-20T08:34:31", "url": "https://files.pythonhosted.org/packages/6d/3d/c4928634dac5566cfe7f3b083b09e574a04d53f2b088f88056fbe1c284b4/wait-for-it-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "446fc86b02b91e49c744d2673c42a672", "sha256": "6d0e16904dfeb12f44cb3b472caa56599000a83993a683aa2a48d56cbf5dfefa" }, "downloads": -1, "filename": "wait_for_it-1.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "446fc86b02b91e49c744d2673c42a672", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 4880, "upload_time": "2019-02-11T03:34:00", "url": "https://files.pythonhosted.org/packages/3b/75/9be2045dbf0f16990b36090ba677057acd6498bdc166b7cfd44cb4c607eb/wait_for_it-1.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7f6d6b10c65afde7c434e9e461a9b105", "sha256": "14452af654c7009d18bc40cf670d1bdd25eb738eeee2e252dbe6db218852a3b3" }, "downloads": -1, "filename": "wait-for-it-1.1.2.tar.gz", "has_sig": false, "md5_digest": "7f6d6b10c65afde7c434e9e461a9b105", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 3447, "upload_time": "2019-02-11T03:34:01", "url": "https://files.pythonhosted.org/packages/a9/ff/dd207824fe8a85273f54cdd24a2046a9d321a092fde9c5ef6084b57ed38e/wait-for-it-1.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "446fc86b02b91e49c744d2673c42a672", "sha256": "6d0e16904dfeb12f44cb3b472caa56599000a83993a683aa2a48d56cbf5dfefa" }, "downloads": -1, "filename": "wait_for_it-1.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "446fc86b02b91e49c744d2673c42a672", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 4880, "upload_time": "2019-02-11T03:34:00", "url": "https://files.pythonhosted.org/packages/3b/75/9be2045dbf0f16990b36090ba677057acd6498bdc166b7cfd44cb4c607eb/wait_for_it-1.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7f6d6b10c65afde7c434e9e461a9b105", "sha256": "14452af654c7009d18bc40cf670d1bdd25eb738eeee2e252dbe6db218852a3b3" }, "downloads": -1, "filename": "wait-for-it-1.1.2.tar.gz", "has_sig": false, "md5_digest": "7f6d6b10c65afde7c434e9e461a9b105", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 3447, "upload_time": "2019-02-11T03:34:01", "url": "https://files.pythonhosted.org/packages/a9/ff/dd207824fe8a85273f54cdd24a2046a9d321a092fde9c5ef6084b57ed38e/wait-for-it-1.1.2.tar.gz" } ] }