A lightweight ping module returning boolean
Project description
PingDevice Class
The PingDevice class is a Python class that allows you to check if a device is online by pinging its IP address.
Installation
The PingDevice class requires Python 3.6 or later. There are no additional dependencies required.
Usage
First, import the PingDevice class:
In [7]: from ping_module import PingDevice
Create object and call ping() method.
In [8]: a = PingDevice(host="192.168.178.1")
In [9]: a.ping()
Out[9]: True
In [10]: a = PingDevice(host="www.ciscoscsdfsdfdsfsfds.com")
In [11]: a.ping()
Out[11]: False
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ping-module-1.0.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for ping_module-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d1c337ad1d5b39df9e707c701d428a465bd35286d4dfc9d544e9399d1c17be6 |
|
MD5 | 684838192a53d5a5a733d52154c87185 |
|
BLAKE2b-256 | b7f8facdb7c91e595ac61856b6998e02c6bcc185ab5bd405835c09a878c8e4f5 |