Measuring and graphing ping
Project description
pingscope
Measuring and graphing ping
Concept
Returns the ping result as an integer value in milliseconds and outputs an image
Ping result
#{"Dst": "www.google.com", "Count": 5}
12
11
11
12
11
#{"Avg": 12, "Min": 11, "Max": 12, "ElapsedTime": 5.056681200047024}
PNG
What is ping
Purpose
- Confirm communication with communication partner and measure response speed
Command
ping www.google.com -n 5
Result
www.google.com [x.x.x.x]に ping を送信しています 32 バイトのデータ:
x.x.x.x からの応答: バイト数 =32 時間 =10ms TTL=119
x.x.x.x からの応答: バイト数 =32 時間 =11ms TTL=119
x.x.x.x からの応答: バイト数 =32 時間 =11ms TTL=119
x.x.x.x からの応答: バイト数 =32 時間 =13ms TTL=119
x.x.x.x からの応答: バイト数 =32 時間 =13ms TTL=119
x.x.x.x の ping 統計:
パケット数: 送信 = 5、受信 = 5、損失 = 0 (0% の損失)、
ラウンド トリップの概算時間 (ミリ秒):
最小 = 10ms、最大 = 13ms、平均 = 11ms
What is possible
- Returns the ping execution result as an integer value in milliseconds
- Output ping results as images
Reason for development
- I would like to obtain the round trip time (hereinafter referred to as RTT), which is the ping result, as an integer value in milliseconds to make it easier to process
- I want to output RTT as an image so that I can understand it at a glance
- I want to express the stability of RTT using color
RTT tiers
| Rank | Range | Color image | Color name | Color code |
|---|---|---|---|---|
| S | 0 - 9ms | Blue | #0000FF | |
| A | 10 - 14ms | Skyblue | #87CEEB | |
| B | 15 - 19ms | Green | #00FF00 | |
| C | 20 - 29ms | Yellow | #FFFF00 | |
| D | 30 - 49ms | Orange | #FFA500 | |
| E | 50ms over | Red | #FF0000 |
Versions
| Version | Summary |
|---|---|
| 0.1.6 | Release pingscope |
Installation
pingscope
pip install pingscope
CLI
ping
Execute ping and create image
1. Image(PNG) conversion by CLI execution
ping # <ping file name> <dst>
[With value]
-c|--count 5 # Count
-m|--max-count 30 # Max count
pingscope ping google www.google.com
google.ping is done.
google.png is done.
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
pingscope-0.1.6.tar.gz
(5.3 kB
view details)
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 pingscope-0.1.6.tar.gz.
File metadata
- Download URL: pingscope-0.1.6.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dda6205f11e6515b848aefadb06b7a1df1a05abe90542e6344e9fa1327e3ff75
|
|
| MD5 |
efc30d08d64d6c3c349632926bedbf88
|
|
| BLAKE2b-256 |
e326039e52a40df5f303b1df7eb27cf01b7c7ffc732900ae00d6ba696e92f155
|
File details
Details for the file pingscope-0.1.6-py3-none-any.whl.
File metadata
- Download URL: pingscope-0.1.6-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9e5bcc52fb3be26c47b77c4b600f4f236f672162ac9733b2b917ee072680290
|
|
| MD5 |
e2aa63960cff206b6061f6dd1ed194f1
|
|
| BLAKE2b-256 |
b9e3dc0311f4d1ed2108b681cbfb2767890653dbf2acc1c8dc8931b1b1bf5f9a
|