Skip to main content

Library to ping using the operating system command

Project description


This library provides an easy way to ping using the ping command provided by the operating system. The reason for using the operating system command is so that you do not need to be root to send an ICMP packet.


Installation can be done through the pip3 command:

pip3 install procamora-ping --user

You can also update the library with:

python3 -m pip install --user --upgrade procamora-ping

Basic Usage

To use this class the first thing to do is import the library:

from procamora_ping.logger import get_logger, logging
from import ping
ips: List[Text] = ["", "", ""]

for ip in ips:
    texto: bool = ping(ip)
    if texto:"{} up".format(ip))
    else:"{} down".format(ip))

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for procamora-ping, version 1.1
Filename, size File type Python version Upload date Hashes
Filename, size procamora-ping-1.1.tar.gz (15.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page