Package: pingping
Multi Linguistic Ping (pingping)IntroductionDocsCommandsPre-requisitesInstallation and DownloadsFAQOther ResourcesBug Tracker and SupportUnit-TestsLicense and CopyrightAuthor and ThanksIntroductionpingping is a special library which understands multi linguistic of ping output and translated the result to machine understandable format. i.e. Jsonpingping is a vendor independent library where you can parse any language ping outputpingping support tcping which works on transport layer i.e. Ping on proxy server, here ping refers to seding packets via tcp protocol to check the connectivity.DocsHow to use pingping?Command LineTypepingping <ip-address>orpingping <ip-address> --web. For more help typepingping -hPythonIt's very simple, create an object ofPingand callping method with ip address. Internally it calls system ping command and captures the needed result.How to run ping command?# clipingping192.168.1.1pingping1.1.1.1# python codeobj=Ping()print(obj.ping('192.168.1.1'))print(obj.ping('1.1.1.1'))It returns Json output and easy to understand by the keys of it.{"ip":"192.168.1.1","loss_percentage":100.0}{"ip":"1.1.1.1","loss_percentage":0.0,"min":55.669,"avg":78.198,"max":130.778,"time_in":"ms"}How to capture result from ping output?I am having ping result how to analise the output of it.Ping.fetch_ping_data(ping_output)# it's a class method.It automatically identifies the ip address and important details from it. It doesn't have any language barier.{"ip":"1.1.1.1","loss_percentage":0.0,"min":55.669,"avg":78.198,"max":130.778,"time_in":"ms"}CommandsUsagepingping<ip-address>-c|--count<Number>-l4|--web|--tcp|--http(pingoverproxy)-h|--helpPre-requisitespingping supports both trains ofpython2.7+ and 3.1+, the OS should not matter.shconfparser is used to captured the data.Installation and DownloadsThe best way to get pingping is with setuptools or pip. If you already have setuptools, you can install as usual:python -m pip install pingpingOtherwise download it from PyPi, extract it and run thesetup.pyscriptpython setup.py installIf you're Interested in the source, you can always pull from the github repo:From githubgit clone https://github.com/network-tools/pingping.gitFAQQuestion:I want to use pingping with Python3, is that safe?Answer:As long as you're using python 3.3 or higher, it's safe. I tested every release against python 3.1+, however python 3.1 and 3.2 not running in continuous integration test.Question:I want to use pingping with Python2, is that safe?Answer:As long as you're using python 2.7 or higher, it's safe. I tested against python 2.7.Other ResourcesPython3 documentationis a good way to learn pythonPythonGeeksforGeeksJSONBug Tracker and SupportPlease report any suggestions, bug reports, or annoyances with pingping through theGithub bug tracker. If you're having problems with general python issues, consider searching for a solution onStack Overflow.If you can't find a solution for your problem or need more help, you canask a question.You can also ask on theStack Exchange Network Engineeringsite.Unit TestsTravis CIproject tests pingping on Python versions2.7through3.7.The current build status is:License and Copyrightpingping is licensedMIT2019Author and Thankspingping was developed byKiran Kumar Kotari