{"id":22970,"library":"wait-for-it","title":"wait-for-it","description":"A cross-platform command-line tool that waits for one or more network services (TCP or UDP) to become available before executing a command. Version 2.3.0, released in 2024, requires Python >=3.9. Stable, low release cadence.","status":"active","version":"2.3.0","language":"python","source_language":"en","source_url":"https://github.com/hartwork/wait-for-it","tags":["wait-for-it","network","cli","async"],"install":[{"cmd":"pip install wait-for-it","lang":"bash","label":"pip install"}],"dependencies":[],"imports":[{"note":"The package provides a CLI; the Python API is not the primary use case.","wrong":null,"symbol":"wait_for_it","correct":"from wait_for_it import wait_for_it"}],"quickstart":{"code":"from wait_for_it import wait_for_it\n\nawait wait_for_it('tcp://localhost:5432', timeout=30)","lang":"python","description":"Wait for a PostgreSQL service on localhost:5432 with a 30-second timeout."},"warnings":[{"fix":"Upgrade Python to >=3.9 or pin pip install wait-for-it==2.2.0","message":"Python 3.8 support dropped in v2.3.0. Users on 3.8 must pin to v2.2.0 or upgrade Python.","severity":"deprecated","affected_versions":">=2.3.0"},{"fix":"Use async/await or call asyncio.run(wait_for_it(...))","message":"The Python API is asynchronous. Calling wait_for_it without await or in a non-async context will raise a RuntimeWarning or return a coroutine object.","severity":"gotcha","affected_versions":"all"},{"fix":"Update import to: from wait_for_it import wait_for_it","message":"In v2.0.0, the import path changed from wait_for_it.wait_for_it to wait_for_it.","severity":"breaking","affected_versions":">=2.0.0"}],"env_vars":null,"search_vec":"'2.3.0':32 '2024':35 '3.9':38 'async':49 'avail':26 'becom':25 'cadenc':42 'cli':48 'command':10,30 'command-lin':9 'cross':7 'cross-platform':6 'execut':28 'line':11 'low':40 'network':19,47 'one':16 'platform':8 'python':37 'releas':33,41 'requir':36 'servic':20 'stabl':39 'tcp':21 'tool':12 'udp':23 'version':31 'wait':2,14,44 'wait-for-it':1,43","created_at":"2026-04-27T17:08:03.807349+00:00","updated_at":"2026-04-27T17:08:03.807349+00:00","problems":[{"fix":"Use await: await wait_for_it('tcp://...') or wrap with asyncio.run().","cause":"The wait_for_it function is async but called without await.","error":"RuntimeWarning: coroutine 'wait_for_it' was never awaited"},{"fix":"Install via pip install wait-for-it and use from wait_for_it import wait_for_it.","cause":"The package is not installed or the import path is wrong (old import style).","error":"ModuleNotFoundError: No module named 'wait_for_it'"},{"fix":"Use tcp://host:port or udp://host:port.","cause":"The URL scheme must be tcp or udp, not http or others.","error":"ValueError: Unsupported scheme: http"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"2.3.0","cli_name":"wait-for-it","cli_version":"Version 2.3.0","type":"library","homepage":null,"github":"https://github.com/hartwork/wait-for-it","docs":null,"changelog":null,"pypi":"https://pypi.org/project/wait-for-it/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops","http-networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-28","last_verified":"2026-06-28","next_check":"2026-07-29","install_tag":null}}