Skip to main content

A threaded ICMP ping using /bin/ping, ping.exe.

Project description

Latest Version

Mass Ping

A multi-threaded ICMP ping using /bin/ping, ping.exe.

Features

  • You can get a quick result.
  • It detects ping flapping.
  • You don't need root privilege to send a ping.
  • It has no dependency as using only python standard library.

Installation

Run the folowing to install:

pip install mass-ping

Usage

>>> from mass_ping import MassPing
>>> hosts = ['8.8.8.8', '8.8.4.4', 'yahoo.com', 'ns.speedvpn.net', 'noizze.net']
>>> ping = MassPing(hosts=hosts, thread_count=len(hosts), test_count=2)  # test_count=2 means when ping fails retry 1 more time
>>> result = ping.start()
>>> from pprint import pprint
>>> pprint(result)
{'alive': ['8.8.4.4', '8.8.8.8', 'noizze.net', 'ns.speedvpn.net', 'yahoo.com'],
 'dead': [],
 'flapping': []}

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

mass-ping-2.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

mass_ping-2-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file mass-ping-2.tar.gz.

File metadata

  • Download URL: mass-ping-2.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.10.5

File hashes

Hashes for mass-ping-2.tar.gz
Algorithm Hash digest
SHA256 87d984dffa4664122dae186a6994dc844a4a8162e417d437044fd80badb1c640
MD5 b267158b2bc5f5f726c4e6387198b3e2
BLAKE2b-256 c6fbabc23c3229a9a9504ab12cb7e8be99524a8e3a8dce2dfd224195366f0930

See more details on using hashes here.

File details

Details for the file mass_ping-2-py3-none-any.whl.

File metadata

  • Download URL: mass_ping-2-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.10.5

File hashes

Hashes for mass_ping-2-py3-none-any.whl
Algorithm Hash digest
SHA256 de8911332b88c66db3362ac1c625ec927de8ce4ee7a8e211744fc39b65c977d6
MD5 a6632d8ca851594781493a09a4a8cc90
BLAKE2b-256 221688118a250ad8a99b21a8c67c92fdcd3233cbbcb5a12cf541aebfc870dcd4

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