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': []}
Metadata
Release files for mass-ping 2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mass-ping-2.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mass_ping-2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.3 kB
Release files / mass-ping-2.tar.gz
| Download URL | mass-ping-2.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87d984dffa4664122dae186a6994dc844a4a8162e417d437044fd80badb1c640
|
|
BLAKE2b-256 checksum How to use checksums |
c6fbabc23c3229a9a9504ab12cb7e8be99524a8e3a8dce2dfd224195366f0930
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / mass_ping-2-py3-none-any.whl
| Download URL | mass_ping-2-py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
de8911332b88c66db3362ac1c625ec927de8ce4ee7a8e211744fc39b65c977d6
|
|
BLAKE2b-256 checksum How to use checksums |
221688118a250ad8a99b21a8c67c92fdcd3233cbbcb5a12cf541aebfc870dcd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|