Skip to main content

A simple parallel ipv4 ping utility

Project description

Simple parallel ipv4 ping library / cli utility.

Cli accepts ip range input, e.g. 10.10.10.1-255, and returns 2 lists, responding and non-responding ips

This originated from need to quick-check many IPs after disaster-recovery excercises. intended to be moldable, and propably offers most of its value as an example of using python lists in unusual ways :)

Sample usage scanning 192.168.0.1/30:

Python 3.9.6 (default, Nov 10 2023, 13:38:27) 
[Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import parping
>>> p = parping.Parping()
>>> p.parping_range('192.168.0.1','30')
parsing 192.168.0.1/30
prepinging 192.168.0.0
Darwin/MacOS detected..
Adding 192.168.0.0 to iplist..
prepinging 192.168.0.1
Darwin/MacOS detected..
Adding 192.168.0.1 to iplist..
prepinging 192.168.0.2
Darwin/MacOS detected..
Adding 192.168.0.2 to iplist..
prepinging 192.168.0.3
Darwin/MacOS detected..
Adding 192.168.0.3 to iplist..
192.168.0.1 active
192.168.0.0 returned error
192.168.0.3 returned error
192.168.0.2 returned error

Summary:
1 responding IPs.
3 non-responding IPs
(1, 3)
>>> 

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

parping-0.0.2.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

parping-0.0.2-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file parping-0.0.2.tar.gz.

File metadata

  • Download URL: parping-0.0.2.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.6

File hashes

Hashes for parping-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0fa0b32edc86e4a0c4b57b260139e33ccb2015d43e1a930e5e491a0c407c985f
MD5 397c7194c2d4b21859fa22e5779efc19
BLAKE2b-256 fcbf9dd8116f151c020645fbbd8df517ff34600ea81288b00b3648c402b6e95f

See more details on using hashes here.

File details

Details for the file parping-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: parping-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.6

File hashes

Hashes for parping-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 881f830d9bb33028d4aa816e8300e06397a469d96225ad2eaf783258f84ef353
MD5 dca5ca3c1c77f4579fd95cd86c3be0e4
BLAKE2b-256 0d3060a7b9e730c3e3dd918394ff40d3ebf0292ad900ce8619149f9ad9abf6bc

See more details on using hashes here.

Supported by

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