Skip to main content

IP (TCP/UDP) ping tools

Project description

IP ping

PyPI PyPI - Status

A ping(8) like network utility allowing use of TCP and UDP packets to measure round-trip and packet loss statistics.

Implemented in minimal-dependency pure Python 3.7+ using asyncio-protocol.

Installation

Get it from pypi

pip install --upgrade ipping

Usage

UDP

Sends UDP packets to a running UDP echo server.

Echo server must be running on the machine we want to ping.

Using socat(1):

socat PIPE udp-recvfrom:5554,fork

Using ncat(1):

ncat -kule /bin/cat 5554

Run ping test:

$ ipping udp 192.168.20.2 5554 -i 0.5 -s 8176 -c 4
PING 192.168.20.2:5554: 8176 data bytes
8192 bytes from 192.168.20.2:5554: time=7.476 ms
8192 bytes from 192.168.20.2:5554: time=7.687 ms
8192 bytes from 192.168.20.2:5554: time=13.941 ms
8192 bytes from 192.168.20.2:5554: time=8.448 ms

--- 192.168.20.2:5554 ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 7.476/9.388/13.941/3.064 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

ipping-0.1.3.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

ipping-0.1.3-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file ipping-0.1.3.tar.gz.

File metadata

  • Download URL: ipping-0.1.3.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.2

File hashes

Hashes for ipping-0.1.3.tar.gz
Algorithm Hash digest
SHA256 39c0a49dacf44bd404f593044d654815f23c505225ee6e0504c3733b914fc7ec
MD5 40e833134fb56cf6be5ddebda7e61df7
BLAKE2b-256 8f36bec1c2466d0b11eb2e2a52bae8ba63f6caa1fbc574cdeed87e6f61b35933

See more details on using hashes here.

File details

Details for the file ipping-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: ipping-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.2

File hashes

Hashes for ipping-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a896a18f85a456ba8b3a7cc24842eb4f2fca08e68e5b042cb22651ddd8a87286
MD5 6d335e05ffa9ea69e8d6ef7bc757b190
BLAKE2b-256 e2efe1b7936a5e8a57f17b585c22fcf62f102c9d52c1ce1e0ecbc71aff467b7f

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