skillfed

pingparsing

pingparsing is a CLI-tool/Python-library parser and transmitter for the ping command.

pingparsing v1.4.2 238.4K downloads/30d#8,939 on PyPI78
Permissive license MIT License DORMANT released

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 pingparsing

uv

uv add pingparsing

poetry

poetry add pingparsing

Installing 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

Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: Telecommunications IndustryLicense :: OSI Approved :: MIT LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python ModulesTopic :: System :: NetworkingTopic :: System :: Networking :: MonitoringTopic :: Text ProcessingTyping :: Typed

Tags

ping output parserparse ping resultsping statistics extractionnetwork latency measurementcli ping toolICMP reply parsingping command wrapper
network-diagnosticscli-tooljson-output

More Libraries packages