gping

Ping, but with a graph

Github stars Tracking Chart

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.

Main metrics

Overview
Name With Ownerorf/gping
Primary LanguageRust
Program languageRust (Language Count: 3)
Platform
License:MIT License
所有者活动
Created At2015-10-17 14:34:25
Pushed At2025-04-18 10:44:36
Last Commit At2025-01-31 13:19:02
Release Count75
Last Release Namepinger-v2.0.0 (Posted on 2024-12-18 13:13:08)
First Release Namepython (Posted on )
用户参与
Stargazers Count11.5k
Watchers Count77
Fork Count324
Commits Count710
Has Issues Enabled
Issues Count158
Issue Open Count27
Pull Requests Count195
Pull Requests Open Count7
Pull Requests Close Count167
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private