gping

Ping, but with a graph

Github星跟蹤圖

gping Snap Status

Ping, but with a graph

Install and run

If you're using Linux you can install gping using snap:

sudo snap install gping && sudo snap connect gping:network-observe

Then just execute as usual using the gping command.

Using pip

Created/tested with Python 3.4 and 2.7.

pip3 install pinggraph

Tested on Windows, Ubuntu and OS X. After installation just run:

gping [yourhost]

If you don't give a host then it pings google.

Why?

My apartments internet is all 4g, and while it's normally pretty fast it can be a bit flakey. I often
found myself running ping -t google.com in a command window to get a rough idea of the network speed,
and I thought a graph would be a great way to visualize the data. I still wanted to just use the command
line though, so I decided to try and write a cross platform one that I could use. And here we are.

Code

For a quick hack the code started off really nice, but after I decided pretty colors
were a good addition it quickly got rather complicated. Inside pinger.py
is a function plot(), this uses a canvas-like object to "draw" things like lines
and boxes to the screen. I found on Windows that changing the colors is slow and
caused the screen to flicker, so theres a big mess of a function called process_colors
to try and optimize that. Don't ask.

主要指標

概覽
名稱與所有者orf/gping
主編程語言Rust
編程語言Rust (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2015-10-17 14:34:25
推送於2025-10-14 10:05:47
最后一次提交2025-09-30 17:11:41
發布數79
最新版本名稱pinger-v2.1.1 (發布於 2025-08-15 13:47:26)
第一版名稱python (發布於 )
用户参与
星數12.1k
關注者數80
派生數345
提交數724
已啟用問題?
問題數163
打開的問題數32
拉請求數197
打開的拉請求數11
關閉的拉請求數176
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?