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
Release history Release notifications | RSS feed
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)
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
mass_ping-1-py3-none-any.whl
(2.6 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
826b917de30be4482a23e3e2485f33f8244909e33b89f03364d2a8cd3c6b9e03
|
|
| MD5 |
b9bbc695a89b23506ce2dcd0fc38c1fb
|
|
| BLAKE2b-256 |
bf6e66b4617c95a046f3fc7818d1c6e64848768a221d5b9be7a29c4fe546c45d
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81ac14be03f3430bb4c54c7985647722041d2495b093d496966314f8411fd89d
|
|
| MD5 |
460bf20ccb47ffbcf8a1a4c0a1746a23
|
|
| BLAKE2b-256 |
5564d9f625cc065c122ddbbb2b11104e87171edf83bc45b7c7eded36347e6e93
|