MCPcopy Index your code
hub / github.com/OpenOSINT/OpenOSINT / _handle_ip2location

Function _handle_ip2location

openosint/cli.py:563–573  ·  view source on GitHub ↗
(
    ip: str,
    timeout: int,
    json_output: bool = False,
)

Source from the content-addressed store, hash-verified

561
562
563async def _handle_ip2location(
564 ip: str,
565 timeout: int,
566 json_output: bool = False,
567) -> None:
568 print(f"[*] IP2Location lookup: {ip}", file=sys.stderr)
569 result = await run_ip2location_osint(ip=ip, timeout_seconds=timeout)
570 if json_output:
571 _emit_json(format_tool_result("search_ip2location", ip, result))
572 else:
573 _print_result(result)
574
575
576async def _handle_multi(

Callers 1

_async_mainFunction · 0.85

Calls 4

run_ip2location_osintFunction · 0.90
format_tool_resultFunction · 0.90
_emit_jsonFunction · 0.85
_print_resultFunction · 0.70

Tested by

no test coverage detected