Python Ping with Emoji
Project description
ppecli (py-ping-emoji)
cping – a cross‑platform CLI to ping any host/IP and get an emoji latency badge.
cping 8.8.8.8 # 🟢 Fast: 11 ms
cping google.com # 🟢 Fast: 7 ms
cping --http google.com # 🟡 Medium: 120 ms
ICMP by default · HTTP latency with
--http· Works on macOS, Linux, Windows
🚀 Installation
pip install ppecli
Creates the command cping in your PATH.
🌟 Usage
cping <host|ip> [--http]
| Example | What happens |
|---|---|
cping 8.8.8.8 |
ICMP‑ping → emoji & RTT |
cping google.com |
ICMP‑ping of resolved IP |
cping https://github.com |
Same, scheme stripped automatically |
cping --http example.com |
Full HTTPS request latency measurement |
Exit code is 0 on success, 1 on error — handy for CI scripts.
🛠️ Features
- Emoji output — 🟢 <100 ms · 🟡 100‑500 ms · 🔴 >500 ms or no reply
- Auto‑scheme handling — give
google.com,https://google.com, or raw IP - Cross‑platform — macOS, Linux, Windows (
pingflags auto‑detected) - HTTP mode — measure real web latency with TLS handshake (
--http) - Tiny footprint — stdlib +
requestsonly
📦 Library API
from ppecli import icmp_ping, http_ping, emoji_latency
ms = icmp_ping("8.8.8.8")
print(emoji_latency(ms))
📝 License
MIT — see LICENSE for details.
Made with ❤️ by Froas
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
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 ppecli-0.1.0.tar.gz.
File metadata
- Download URL: ppecli-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb5452b86f63edc83ce28a672c16ac12f5351ed150b95a0a471d365ac50725a3
|
|
| MD5 |
f60c5f9d0b8b0599c9a1e4a2fd2a63cc
|
|
| BLAKE2b-256 |
d04f8e8c88d0b16dd513d677b677098c34de4429bab4a74b5aae8a12be204494
|
File details
Details for the file ppecli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ppecli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d2c9f5464538a964aea42cf55f2501e2e0b310e517994fddfd6db1cc5e21191
|
|
| MD5 |
885410ce7707693e58346e299c5f5098
|
|
| BLAKE2b-256 |
476c0df0ec5c86a72fd096c09b1122cd73852dcbd8de47a84da00db17320b5b0
|