Skip to main content

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

Project description

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-1.tar.gz (2.3 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-1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mass-ping-1.tar.gz
Algorithm Hash digest
SHA256 826b917de30be4482a23e3e2485f33f8244909e33b89f03364d2a8cd3c6b9e03
MD5 b9bbc695a89b23506ce2dcd0fc38c1fb
BLAKE2b-256 bf6e66b4617c95a046f3fc7818d1c6e64848768a221d5b9be7a29c4fe546c45d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mass_ping-1-py3-none-any.whl
  • Upload date:
  • Size: 2.6 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.4.3

File hashes

Hashes for mass_ping-1-py3-none-any.whl
Algorithm Hash digest
SHA256 81ac14be03f3430bb4c54c7985647722041d2495b093d496966314f8411fd89d
MD5 460bf20ccb47ffbcf8a1a4c0a1746a23
BLAKE2b-256 5564d9f625cc065c122ddbbb2b11104e87171edf83bc45b7c7eded36347e6e93

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