pingparsing
pingparsing is a CLI-tool/Python-library parser and transmitter for the ping command.
What it is and what it does
pingparsing is a parser and CLI wrapper for the system ping command that converts raw ping output into structured JSON. It works both as a standalone command-line tool and as a Python library, letting you execute ping against one or more destinations and extract metrics like round-trip times, packet loss rates, and duplicate counts. The library can also parse ping output from files or standard input, making it useful for post-processing historical ping data or integrating ping results into monitoring pipelines.
The package depends on humanreadable, pyparsing, subprocrunner, and typepy to handle text parsing, subprocess management, and type validation. It supports Python 3.7 through 3.12 and runs on Linux, macOS, and Windows. The CLI outputs results in JSON format, optionally including detailed ICMP reply information when requested.
Use it for:
- Monitor network latency to multiple remote hosts by running parallel pings and collecting statistics in JSON for downstream processing.
- Parse historical ping logs from files to extract and analyze packet loss and round-trip time trends.
- Integrate ping measurements into a Python monitoring or alerting system without manually parsing text output.
- Build a network diagnostics dashboard that collects ping statistics from multiple destinations and formats them for visualization.
- Automate network health checks in CI/CD pipelines by executing ping and parsing results programmatically.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Executes and parses ping command output, extracting round-trip time statistics, packet loss, and ICMP reply details into structured JSON; available as both a CLI tool and Python library.
Yes, if you need to parse ping output programmatically or run ping from a CLI with JSON output. The package is stable and carries no known vulnerabilities. Install friction is low and dependencies are lightweight. The main caveat is dormant maintenance—no updates in 834 days—so if you encounter bugs or need support for new ping output formats, you may need to fork or patch it yourself. Suitable for monitoring, diagnostics, and integration tasks where ping parsing is a small part of a larger system.
Install
pingparsing on PyPI
pip
pip install pingparsinguv
uv add pingparsingpoetry
poetry add pingparsingInstalling pingparsing
Before you install
Low install friction with a pure-Python wheel distribution. Maintenance is dormant (834 days since last release), but the package is marked Production/Stable and the repository remains active with no archival flag.
License in practice
MIT License permits commercial and private use with minimal restrictions, requiring only license and copyright notice retention.
Quickstart
pip install pingparsing
from pingparsing import PingParsing
ping = PingParsing()
result = ping.ping("google.com")
print(result.as_json())
The ping command must be available on the system; on some restricted environments or containers, ping may be disabled or require elevated privileges.
Verify before relying
- Whether parallel ping execution across multiple destinations is truly concurrent or sequential.
- Compatibility with non-standard ping implementations (e.g., busybox, Windows ICMP).
- Performance characteristics when parsing very large ping result files or many simultaneous destinations.
Package facts
| License | MIT License (permissive) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — humanreadable, pyparsing, subprocrunner, typepy |
| Maintenance | dormant — 834 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 238,405/month — #8,939 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pingparsing-1.4.2-py3-none-any.whl
Keywords: cli, library, network, ping, parser, transmitter
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
ping3Ping3 sends ICMP echo requests to hosts and…
permissive · top 15,000 on PyPI
pythonpingSends ICMP ping requests to remote hosts from…
permissive · top 15,000 on PyPI
icmplibicmplib provides a pure Python implementation…
copyleft · top 5,000 on PyPI
jcConverts output from popular CLI tools,…
permissive · top 15,000 on PyPI
multipingMultiPing sends ICMP echo requests (pings) to…
permissive · top 15,000 on PyPI
aiopingaioping provides an asyncio-based ICMP ping…
copyleft · top 15,000 on PyPI
dpktdpkt parses and creates TCP/IP protocol packets…
permissive · top 5,000 on PyPI
rtpDecodes, encodes, and manipulates RTP…
permissive · top 15,000 on PyPI
mcstatusQueries Minecraft servers (Java, Legacy, and…
permissive · top 15,000 on PyPI
tls-parserParses TLS records from binary data, extracting…
unclear · top 15,000 on PyPI