Skip to main content

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 (ping flags auto‑detected)
  • HTTP mode — measure real web latency with TLS handshake (--http)
  • Tiny footprint — stdlib + requests only

📦 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ppecli-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ppecli-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for ppecli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bb5452b86f63edc83ce28a672c16ac12f5351ed150b95a0a471d365ac50725a3
MD5 f60c5f9d0b8b0599c9a1e4a2fd2a63cc
BLAKE2b-256 d04f8e8c88d0b16dd513d677b677098c34de4429bab4a74b5aae8a12be204494

See more details on using hashes here.

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

Hashes for ppecli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d2c9f5464538a964aea42cf55f2501e2e0b310e517994fddfd6db1cc5e21191
MD5 885410ce7707693e58346e299c5f5098
BLAKE2b-256 476c0df0ec5c86a72fd096c09b1122cd73852dcbd8de47a84da00db17320b5b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page