MCPcopy Create free account
hub / github.com/openai/openai-agents-python / redis_url_is_local

Function redis_url_is_local

examples/run_examples.py:243–248  ·  view source on GitHub ↗
(url: str)

Source from the content-addressed store, hash-verified

241
242
243def redis_url_is_local(url: str) -> bool:
244 host_port = redis_url_host_port(url)
245 if host_port is None:
246 return False
247 host, _ = host_port
248 return host in LOCAL_REDIS_HOSTS
249
250
251def redis_ping_url(url: str, timeout: float = 0.5) -> bool:

Callers 1

Calls 1

redis_url_host_portFunction · 0.85

Tested by

no test coverage detected