A cross-platform Python wrapper around the `ping` utility.
Project description
PingPy
A cross platform wrapper for the ping utility written in Python.
Links
| Name | Link |
|---|---|
| 📝 redjax/pingpy | github.com/redjax/pingpy |
🐍 pingpy |
pypi.org/project/pingpy |
Description
pingpy is a Python interface that uses subprocess to call the platform's ping utility. The pingpy CLI accepts a subset of ping's args and unifies the interface (i.e. -c now always means "count" with pingpy), and translates the pingpy args to the platform's ping implementation.
Usage
Run pingpy --help to see usage instructions.
usage: pingpy [-h] [-c COUNT] [-v] [-d] [-f FILE] [-o] [-a] [-s SLEEP] target
Ping a specified target with options for repeat count, debugging & verbosity level, and optional logging to file.
positional arguments:
target Target IP address or hostname to ping
options:
-h, --help show this help message and exit
-c COUNT, --count COUNT
Number of times to ping. Default: 3, 0=infinite.
-v, --verbose Enable verbose output
-d, --debug Enable debug logging
-f FILE, --file FILE Path to the log file
-o, --overwrite Overwrite the log file if it exists
-a, --append Append to the log file if it exists
-s SLEEP, --sleep SLEEP
Number of seconds to wait between pings. Default: 1.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pingpy-0.1.1.tar.gz.
File metadata
- Download URL: pingpy-0.1.1.tar.gz
- Upload date:
- Size: 25.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38d71c4043d858c1ac49b7c2931b91ec3224ae0cf8ba00f4fa7c87b6cb9eb84e
|
|
| MD5 |
7122c5f12ea850059036998dd0461a69
|
|
| BLAKE2b-256 |
af37883bc6a69b76cef76189867dea1af518830d3147349404206c198205c564
|
File details
Details for the file pingpy-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pingpy-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35246c95b87d18509ffa06c81f7e1c282cc04030633ef35d36f19fec465c36d9
|
|
| MD5 |
c099ac499d57e829068573206fa2268b
|
|
| BLAKE2b-256 |
51a6680ab8abb0fe17c55579834f6ae20a7e2e0d7c3dc39db0ce799b917b94be
|