Skip to content

Python wrapper for command line ping

License

Notifications You must be signed in to change notification settings

twdkeule/pyping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Python wrapper for command line ping

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages