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.
Release files for pingscope 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pingscope-0.1.6.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pingscope-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.9 kB
Release files / pingscope-0.1.6.tar.gz
| Download URL | pingscope-0.1.6.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dda6205f11e6515b848aefadb06b7a1df1a05abe90542e6344e9fa1327e3ff75
|
|
BLAKE2b-256 checksum How to use checksums |
e326039e52a40df5f303b1df7eb27cf01b7c7ffc732900ae00d6ba696e92f155
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.0
|
Release files / pingscope-0.1.6-py3-none-any.whl
| Download URL | pingscope-0.1.6-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a9e5bcc52fb3be26c47b77c4b600f4f236f672162ac9733b2b917ee072680290
|
|
BLAKE2b-256 checksum How to use checksums |
b9e3dc0311f4d1ed2108b681cbfb2767890653dbf2acc1c8dc8931b1b1bf5f9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.0
|