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
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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ping-module-1.0.tar.gz.
File metadata
- Download URL: ping-module-1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
211a34e6a40724cff44f4151e6e958a5d336f46b7920a8f1e392b591788df6db
|
|
| MD5 |
78cb6cf8bb310d6b4af2dfe93a49cb0e
|
|
| BLAKE2b-256 |
49b7826b941272f7032269a6bb6e2b4d48c89d379d1904d3bcca645a6cbf8101
|
File details
Details for the file ping_module-1.0-py3-none-any.whl.
File metadata
- Download URL: ping_module-1.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d1c337ad1d5b39df9e707c701d428a465bd35286d4dfc9d544e9399d1c17be6
|
|
| MD5 |
684838192a53d5a5a733d52154c87185
|
|
| BLAKE2b-256 |
b7f8facdb7c91e595ac61856b6998e02c6bcc185ab5bd405835c09a878c8e4f5
|