Skip to main content

A simple ping library for Python

Project description

PlatPingLib

A simple Python library to perform ping operations across platforms. PlatPingLib provides an easy-to-use function ping_ip that allows you to check the reachability of a given IP address in your network.

Features

  • Cross-platform support (Windows, Linux, macOS)
  • Simple interface to ping IP addresses
  • Customizable timeouts

Installation

To install PlatPingLib, simply use pip:

pip install PlatPingLib

Usage

Here is a quick example of how to use PlatPingLib:

from PlatPingLib import ping_ip

# Ping an IP address
ip_address = "8.8.8.8"
if ping_ip(ip_address):
    print(f"Successfully pinged {ip_address}")
else:
    print(f"Failed to ping {ip_address}")

Requirements

Python 3.6+

Contributing

Contributions are welcome! Please feel free to submit a pull request. Support

If you have any issues or questions, please open an issue on the GitHub repository.

Caleb Finigan - Initial work - CalebFin

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

PlatPingLib-1.0.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PlatPingLib-1.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file PlatPingLib-1.0.tar.gz.

File metadata

  • Download URL: PlatPingLib-1.0.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.0

File hashes

Hashes for PlatPingLib-1.0.tar.gz
Algorithm Hash digest
SHA256 7fcb74681af06c0dac71b112d9c432831afc6db5b91464d995432f465aa3e214
MD5 6f3327e1250981a8a8cb0748b6997a28
BLAKE2b-256 9010b02abbaef1f453778a9ea52fc87f31274156061668de7f2ef5443deb67ee

See more details on using hashes here.

File details

Details for the file PlatPingLib-1.0-py3-none-any.whl.

File metadata

  • Download URL: PlatPingLib-1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.0

File hashes

Hashes for PlatPingLib-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 127e875066c224ccaf0205730e3a144367a6578cc0577eb875a0de3b390e7c4b
MD5 0364a1a6b6477a76c9830b2e15751106
BLAKE2b-256 66f44f95489475f2be0d609e2a1b5fa23fde74f748772badaa609819de520158

See more details on using hashes here.

Supported by

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