skip to navigation
skip to content

python3-ping 2014.05.02.16245f0

A pure python ICMP ping implementation using raw sockets.

A pure python ping implementation using raw sockets.

Note that ICMP messages can only be sent from processes running as root (in Windows, you must run this script as ‘Administrator’).

Original Version from Matthew Dixon Cowles

  • copyleft 1989-2011 by the python-ping team, see AUTHORS for more details.
  • license: GNU GPL v2, see LICENSE for more details.


~/python3-ping$ sudo ./

PYTHON-PING ( 55 data bytes
64 bytes from ( icmp_seq=0 ttl=54 time=56.2 ms
64 bytes from ( icmp_seq=1 ttl=54 time=55.7 ms
64 bytes from ( icmp_seq=2 ttl=54 time=55.5 ms PYTHON PING Statistics----
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip (ms)  min/avg/max = 55.468/55.795/56.232

~/python3-ping]# ./
usage: [-h] [-q] [-c COUNT] [-W TIMEOUT] [-s PACKET_SIZE] destination error: the following arguments are required: destination


  • refactor
  • add a “suprocess ping”, with output parser

New Features

  • CLI interface -> thanks for Yu-Jie Lin to add this feature with argparse module


Fork this repo on GitHub and send pull requests. Thank you.


See HISTORY.rst.

File Type Py Version Uploaded on Size
python3-ping-2014.05.02.16245f0.tar.gz (md5) Source 2014-05-02 10KB
  • Downloads (All Versions):
  • 6 downloads in the last day
  • 51 downloads in the last week
  • 255 downloads in the last month