Skip to main content

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

  1. Returns the ping execution result as an integer value in milliseconds
  2. 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)

Source distribution for pingscope 0.1.6
File Size Uploaded
pingscope-0.1.6.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pingscope 0.1.6
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page