{"id":13586607,"url":"https://github.com/clarketm/wait-for-it","last_synced_at":"2025-07-13T04:36:10.259Z","repository":{"id":33075818,"uuid":"151051432","full_name":"clarketm/wait-for-it","owner":"clarketm","description":"Wait for service(s) to be available before executing a command.","archived":false,"fork":false,"pushed_at":"2024-10-28T23:38:41.000Z","size":29092,"stargazers_count":63,"open_issues_count":0,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-14T11:41:42.870Z","etag":null,"topics":["network","tcp","wait-for-it"],"latest_commit_sha":null,"homepage":"https://wait-for-it.readthedocs.io/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clarketm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-01T07:29:59.000Z","updated_at":"2025-01-20T21:01:37.000Z","dependencies_parsed_at":"2023-12-11T16:03:20.121Z","dependency_job_id":null,"html_url":"https://github.com/clarketm/wait-for-it","commit_stats":{"total_commits":114,"total_committers":8,"mean_commits":14.25,"dds":0.5877192982456141,"last_synced_commit":"3de8ab88303828963671dd1b55df1f257432cfd6"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/clarketm/wait-for-it","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarketm%2Fwait-for-it","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarketm%2Fwait-for-it/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarketm%2Fwait-for-it/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarketm%2Fwait-for-it/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clarketm","download_url":"https://codeload.github.com/clarketm/wait-for-it/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarketm%2Fwait-for-it/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265089143,"owners_count":23709645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["network","tcp","wait-for-it"],"created_at":"2024-08-01T15:05:40.658Z","updated_at":"2025-07-13T04:36:10.233Z","avatar_url":"https://github.com/clarketm.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"\u003e [!IMPORTANT]\n\u003e The wait-for-it project has a new home at https://github.com/hartwork/wait-for-it by now.\n\n# [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\u003cbr\u003e\n\u003ca href=\"https://wait-for-it.readthedocs.io/en/latest/\"\u003e\n  \u003cp align=\"center\"\u003e\u003cimg width=\"60%\" src=\"https://raw.githubusercontent.com/clarketm/wait-for-it/master/hero.png\" /\u003e\u003c/p\u003e\n\u003c/a\u003e\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\u003e Since [v2.0.0](https://github.com/hartwork/wait-for-it/releases/tag/v2.0.0), `wait-for-it` will return the exit code of the executed command(s).\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://asciinema.org/a/351695.svg)](https://asciinema.org/a/351695)\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  -p, --parallel           Test services in parallel rather than in serial\n  -t, --timeout seconds    Timeout in seconds, 0 for no timeout  [default: 15]\n  -s, --service host:port  Services to test, in one of the formats: ':port',\n                           'hostname:port', 'v4addr:port', '[v6addr]:port' or\n                           'https://...'\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\n[*] Waiting 15 seconds for www.google.com:80\n[+] www.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\n[*] Waiting for www.google.com:80 without a timeout\n[+] www.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\n[*] Waiting 15 seconds for www.google.com:80\n[+] www.google.com:80 is available after 0 seconds\n[*] Waiting 15 seconds for www.bing.com:80\n[+] www.bing.com:80 is available after 0 seconds\n[*] Waiting 15 seconds for www.duckduckgo.com:80\n[+] www.duckduckgo.com:80 is available after 0 seconds\ngoogle, bing, and duckduckgo are up\n```\n\nBy adding the `-p` or `--parallel` option, `wait-for-it` can do the same in parallel rather than serial:\n\n```bash\n$ wait-for-it \\\n--parallel \\\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\n[*] Waiting 15 seconds for www.bing.com:80\n[*] Waiting 15 seconds for www.duckduckgo.com:80\n[*] Waiting 15 seconds for www.google.com:80\n[+] www.bing.com:80 is available after 0 seconds\n[+] www.duckduckgo.com:80 is available after 0 seconds\n[+] www.google.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 \u0026copy; [**Travis Clarke**](https://github.com/clarketm),\n           [Sebastian Pipping](https://blog.hartwork.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarketm%2Fwait-for-it","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclarketm%2Fwait-for-it","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarketm%2Fwait-for-it/lists"}