Skip to main content

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

Metadata

Release files for ping-module 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ping-module 1.0
File Size Uploaded Provenance
ping-module-1.0.tar.gz 2.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ping-module 1.0
File Interpreter ABI Platform
ping_module-1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.2 kB

Release files / ping-module-1.0.tar.gz

Download URL ping-module-1.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
211a34e6a40724cff44f4151e6e958a5d336f46b7920a8f1e392b591788df6db
BLAKE2b-256 checksum
How to use checksums
49b7826b941272f7032269a6bb6e2b4d48c89d379d1904d3bcca645a6cbf8101
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.9

Release files / ping_module-1.0-py3-none-any.whl

Download URL ping_module-1.0-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d1c337ad1d5b39df9e707c701d428a465bd35286d4dfc9d544e9399d1c17be6
BLAKE2b-256 checksum
How to use checksums
b7f8facdb7c91e595ac61856b6998e02c6bcc185ab5bd405835c09a878c8e4f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.9

Security for ping-module 1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page