{"categories":[{"label":"Networking","url":"https://skillfed.io/packages/category/system-networking"}],"enrichment":{"capability":"Ping3 sends ICMP echo requests to hosts and measures round-trip time using raw sockets, returning latency in seconds or milliseconds or None on timeout.","skillfed_tags":["network-diagnostics","icmp","raw-sockets"],"use_cases":["Check if a remote host is reachable and measure latency before attempting a connection.","Monitor network connectivity in a background service or health-check daemon.","Diagnose network issues by pinging multiple hosts with custom timeouts and TTL values.","Build a network topology or reachability map by pinging a range of IP addresses.","Test IPv6 connectivity explicitly or auto-detect the appropriate protocol version."],"what_it_does":"Ping3 is a pure Python implementation of ICMP ping that uses raw sockets to send echo requests and measure network latency. It works with both IPv4 and IPv6 addresses, supports custom timeouts, packet sizes, TTL values, and source addresses or interfaces. The package offers both a programmatic API (ping and verbose_ping functions) and a command-line tool.\n\nThe main use case is network diagnostics and connectivity testing from within Python applications without spawning external ping processes. It returns the round-trip delay as a float, False when a host cannot be resolved, or None on timeout. Optional DEBUG and EXCEPTIONS modes provide detailed packet inspection or exception-based error handling instead of return values.","worth_installing":"Yes, if you need ICMP ping from Python and can work with the privilege requirement. The package is stable, actively maintained, has no external dependencies, and carries permissive licensing. It is well-suited for network diagnostics and connectivity checks in applications or scripts. The main gotcha is that most platforms require root or administrator privileges to send raw ICMP packets."},"id":"ping3","links":{"html":"https://skillfed.io/packages/ping3","md":"https://skillfed.io/packages/ping3.md","pypi":"https://pypi.org/project/ping3/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-08-10","license_spdx":"MIT","license_treatment":"permissive","name":"ping3","python_support":"supports_current","summary":"A pure python3 version of ICMP ping implementation using raw socket."},"popularity":{"monthly_downloads":786264,"position":5067,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"5.1.5"}
