Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.01 KB

README.rst

File metadata and controls

38 lines (30 loc) · 1.01 KB

Pyping

https://travis-ci.org/twdkeule/pyping.svg?branch=master https://api.codacy.com/project/badge/Grade/1e64c14c480745e5b9db007998909798

A python wrapper around the Linux ping command. Developed and tested for python3 on Windows 10 and Ubuntu 17.04 and 12.04.

Usage

Use as a Python lib:

>>> import pyping
>>> r = pyping.ping('google.com')
>>> r.destination
'google.com'
>>> r.max_rtt
'69.374'
>>> r.avg_rtt
'68.572'
>>> r.min_rtt
'67.681'
>>> r.destination_ip
'172.217.17.78'

Todo

  • Add IPv6 support
  • Docs

Contribute

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