Skip to main content

fping-like python application

Project description

pyfping

ping-like pythonic pinger, works for multiple hosts

usage: ping.py [-h] [-f FILENAME] [-c COUNT] [-i INTERVAL] [-s SIZE] [host]

python ping script similar to fping

positional arguments:
  host                  single target host

optional arguments:
  -h, --help            show this help message and exit
  -f FILENAME, --file FILENAME
                        file contains host list
  -c COUNT, --count COUNT
                        icmp packet count to a destination
  -i INTERVAL, --interval INTERVAL
                        icmp packet interval to a destination
  -s SIZE, --size SIZE  icmp packet size

Result is like below:

admin$ pyfping -f some_file_contain_target_hosts
Ping www.baidu.com (110.242.68.3): 98 data bytes
Ping www.taobao.com (121.29.9.227): 98 data bytes
106 bytes from www.baidu.com(110.242.68.3): icmp_seq=0 ttl=44 time=44.3398 ms
106 bytes from www.taobao.com(121.29.9.227): icmp_seq=0 ttl=46 time=38.8643 ms
106 bytes from www.baidu.com(110.242.68.3): icmp_seq=1 ttl=44 time=44.9580 ms
106 bytes from www.taobao.com(121.29.9.227): icmp_seq=1 ttl=46 time=38.3545 ms
106 bytes from www.baidu.com(110.242.68.3): icmp_seq=2 ttl=44 time=44.3999 ms
106 bytes from www.taobao.com(121.29.9.227): icmp_seq=2 ttl=46 time=38.4810 ms
106 bytes from www.baidu.com(110.242.68.3): icmp_seq=3 ttl=44 time=44.8110 ms
106 bytes from www.taobao.com(121.29.9.227): icmp_seq=3 ttl=46 time=39.9470 ms

--- www.baidu.com ping statistics ---
4 packets transmitted, 4 packets received, 0.00% packet loss
round-trip min/avg/max/stddev = 44.34/44.63/44.96/0.26 ms

--- www.taobao.com ping statistics ---
4 packets transmitted, 4 packets received, 0.00% packet loss
round-trip min/avg/max/stddev = 38.35/38.91/39.95/0.63 ms

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

pyfping-1.0.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

pyfping-1.0.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file pyfping-1.0.0.tar.gz.

File metadata

  • Download URL: pyfping-1.0.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.6

File hashes

Hashes for pyfping-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e691a5516a4b630747ce9cf213fbfff4f5d6be255c5007ddbb7c8d485ad8b69a
MD5 6361da6970d806de89d66c8c368d1d29
BLAKE2b-256 278a6ae910e06fda77032da9573f0ccebe45ae585dc1d6ddf3f9f78277ba0038

See more details on using hashes here.

File details

Details for the file pyfping-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyfping-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.6

File hashes

Hashes for pyfping-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc1f80b70f8f0ca090e74609afb63c24804b8f74ab9ea7880d1bb770794b2d09
MD5 0d5a5f035954beffb06997059cdf6132
BLAKE2b-256 af8ff2434c902049e578050dc1a109c225c1ce7af23c9b5185663fbf8c73f17b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page