Skip to main content

Another way to ping in Python

Project description

A Quick Way to Ping in Python

Install

Currently in Test

pip install -i https://test.pypi.org/simple/ pypinger

From the CLI

You can use Pyping from the CLI like so

pyping -s 10.10.10.1

Or ping a whole subnet with

pyping -s 10.10.10.0/24

Programmatically

The pypinger function will not only print the output to the console but also will return a list of hosts that had successful pings

from pypinger import pyping

hosts = pyping('10.10.21.0/24')
print(hosts)

Or you can be prompted at runtime for the hosts/subnet

from pypinger import pyping

hosts = pyping()
print(hosts)

Contact

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

pypinger-2.0.3.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

pypinger-2.0.3-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

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