Skip to main content

中文说明

mping

Ping multiple hosts concurrently and find the fastest to you.

Installation

pip3 install -U mping

Usages

Just tell which host is the fastest:

mping host1.com host2.com host3.com

Get hosts from a file, and ping them:

mping -p PATH/TO/THE/FILE.txt

Read **Input File** section below for more details.

The results will be like this:

host      | count, loss%, min/avg/max
----------|--------------------------
host1.com | 99, 0.0%, 5.4/6.8/14.1
host2.com | 90, 0.0%, 23.8/33.5/39.5
host3.com | 77, 0.4%, 37.4/39.1/43.6

The ``count`` number represents how many replies returned from each
host.

Also check out the help stuff for more instructions:

mping -h

Input File

You can use either a plain text file or a Json file as the -p / --path argument.

Plain Text File

When use a plain text file, just place each host in a line.

For example:

host1.com
host2.com
host3.com

Json File

You can also use a json file as the input hosts, and below is the 2 modes:

Put hosts in a list:

json [ "host1.com", "host2.com", "host3.com" ]

Or in an object (dict) with names:

json { "S1": "host1.com", "S2": "host3.com", "S3": "host3.com" }

The names will be printed in the results.

Release files for mping 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mping 0.1.2
File Size Uploaded
mping-0.1.2.tar.gz 6.2 kB Details

Release files / mping-0.1.2.tar.gz

Download URL mping-0.1.2.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
92ce924e4f65e453eb3118b11c5244a0bd4d33dcfda5204f13339b0f1340ccab
BLAKE2b-256 checksum
How to use checksums
fa8b2a884632a6c12342ba268a938c021df5d98b470ef40b236129fc76287b89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page