{"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,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","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,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}