nemo_eval.adapters.utils#

Module Contents#

Functions#

find_free_port

Find a free port to use for the server.

is_port_open

Check if the given port is open on the host.

wait_for_server

Wait for server to be ready with timeout.

API#

nemo_eval.adapters.utils.find_free_port() int[source]#

Find a free port to use for the server.

nemo_eval.adapters.utils.is_port_open(host, port, timeout=0.5) bool[source]#

Check if the given port is open on the host.

nemo_eval.adapters.utils.wait_for_server(host, port, max_wait=5, interval=0.2) bool[source]#

Wait for server to be ready with timeout.