synping
Ping hosts using tcp syn packets.
Please note that full tcp handshake is used, we want the program to behave nicely and to explicit close the connection after each "ping".
Simple example:
$ synping example.org
Pinging example.org 4 times on port 80:
Reply from 93.184.215.14:80 time=126.17 ms
Reply from 93.184.215.14:80 time=126.54 ms
Reply from 93.184.215.14:80 time=129.27 ms
Reply from 93.184.215.14:80 time=133.44 ms
Statistics:
--------------------------
Host: example.org
Sent: 4 packets
Received: 4 packets
Lost: 0 packets (0.00)%
Min time: 126.17 ms
Max time: 133.44 ms
Average time: 128.85 ms
Notes
- Works on Python 3.7+, for older Python (2.7, 3.4...) use synping 0.9
- Uses only standard library for maximum compatibility
Install
Install using pip:
pip install synping
Or download and set executable permission on the script file:
chmod +x synping.py
Or download and run using the python interpreter:
python synping.py
Usage
usage: synping host [options]
ping hosts using tcp syn packets
positional arguments:
host host to ping
options:
-h, --help show this help message and exit
-t ping host until stopped with 'control-c'
-n COUNT number of requests to send (default: 4)
-p PORT port to ping (default: 80)
-w TIMEOUT timeout in seconds to wait for reply (default: 3)
-v, --version show program's version number and exit
e.g.: synping example.org
Examples
Ping host on port 80 (default):
synping host
Ping host on port 22:
synping host -p 22
Ping host 10 times with 1 second timeout:
synping host -n 10 -w 1
Metadata
Release files for synping 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| synping-1.1.tar.gz | 6.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| synping-1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.1 kB
Release files / synping-1.1.tar.gz
| Download URL | synping-1.1.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e21b329d2c5b3733bd9b7021ba25e20285eafc00c57bf48d5121698e5884f86c
|
|
BLAKE2b-256 checksum How to use checksums |
0bdc975f287adf61573263d3aa1cb93bd73b5d6aa675a7918103280353551641
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / synping-1.1-py3-none-any.whl
| Download URL | synping-1.1-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5dab7aebbce16ec9e1dc09fa53d8635143b11af4837c25407ad38b1f2de8af6
|
|
BLAKE2b-256 checksum How to use checksums |
f345a89a4b5af3210786bbc65e4b42232de6aa9273b2b7596ecfbb68121d94ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for synping 1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.