synping


Namesynping JSON
Version 1.1 PyPI version JSON
download
home_pageNone
SummaryPing hosts using tcp syn packets
upload_time2024-10-02 00:57:04
maintainerNone
docs_urlNone
authorNone
requires_python>=3.6
licenseNone
keywords ping synping tcp
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # synping

[![CI](https://github.com/pdrb/synping/actions/workflows/ci.yml/badge.svg)](https://github.com/pdrb/synping/actions/workflows/ci.yml)
[![Version](https://img.shields.io/pypi/v/synping.svg)](https://pypi.python.org/pypi/synping)
[![Downloads](https://static.pepy.tech/badge/synping)](https://pepy.tech/project/synping)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![LICENSE](https://img.shields.io/github/license/pdrb/synping)](https://github.com/pdrb/synping/blob/master/LICENSE)

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:
```text
$ 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:
```shell
pip install synping
```

Or download and set executable permission on the script file:
```shell
chmod +x synping.py
```

Or download and run using the python interpreter:
```shell
python synping.py
```

## Usage

```text
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):
```shell
synping host
```

Ping host on port 22:
```shell
synping host -p 22
```

Ping host 10 times with 1 second timeout:
```shell
synping host -n 10 -w 1
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "synping",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "ping, synping, tcp",
    "author": null,
    "author_email": "Pedro Gonring <pedro@bigode.net>",
    "download_url": "https://files.pythonhosted.org/packages/0b/dc/975f287adf61573263d3aa1cb93bd73b5d6aa675a7918103280353551641/synping-1.1.tar.gz",
    "platform": null,
    "description": "# synping\n\n[![CI](https://github.com/pdrb/synping/actions/workflows/ci.yml/badge.svg)](https://github.com/pdrb/synping/actions/workflows/ci.yml)\n[![Version](https://img.shields.io/pypi/v/synping.svg)](https://pypi.python.org/pypi/synping)\n[![Downloads](https://static.pepy.tech/badge/synping)](https://pepy.tech/project/synping)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![LICENSE](https://img.shields.io/github/license/pdrb/synping)](https://github.com/pdrb/synping/blob/master/LICENSE)\n\nPing hosts using tcp syn packets.\n\nPlease note that full tcp handshake is used, we want the program to behave nicely\nand to explicit close the connection after each \"ping\".\n\nSimple example:\n```text\n$ synping example.org\n\nPinging example.org 4 times on port 80:\n\nReply from 93.184.215.14:80 time=126.17 ms\nReply from 93.184.215.14:80 time=126.54 ms\nReply from 93.184.215.14:80 time=129.27 ms\nReply from 93.184.215.14:80 time=133.44 ms\n\nStatistics:\n--------------------------\n\nHost: example.org\n\nSent: 4 packets\nReceived: 4 packets\nLost: 0 packets (0.00)%\n\nMin time: 126.17 ms\nMax time: 133.44 ms\nAverage time: 128.85 ms\n```\n\n## Notes\n\n* Works on Python 3.7+, for older Python (2.7, 3.4...) use synping 0.9\n* Uses only standard library for maximum compatibility\n\n## Install\n\nInstall using pip:\n```shell\npip install synping\n```\n\nOr download and set executable permission on the script file:\n```shell\nchmod +x synping.py\n```\n\nOr download and run using the python interpreter:\n```shell\npython synping.py\n```\n\n## Usage\n\n```text\nusage: synping host [options]\n\nping hosts using tcp syn packets\n\npositional arguments:\n  host           host to ping\n\noptions:\n  -h, --help     show this help message and exit\n  -t             ping host until stopped with 'control-c'\n  -n COUNT       number of requests to send (default: 4)\n  -p PORT        port to ping (default: 80)\n  -w TIMEOUT     timeout in seconds to wait for reply (default: 3)\n  -v, --version  show program's version number and exit\n\ne.g.: synping example.org\n```\n\n## Examples\n\nPing host on port 80 (default):\n```shell\nsynping host\n```\n\nPing host on port 22:\n```shell\nsynping host -p 22\n```\n\nPing host 10 times with 1 second timeout:\n```shell\nsynping host -n 10 -w 1\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Ping hosts using tcp syn packets",
    "version": "1.1",
    "project_urls": {
        "Homepage": "https://github.com/pdrb/synping"
    },
    "split_keywords": [
        "ping",
        " synping",
        " tcp"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f345a89a4b5af3210786bbc65e4b42232de6aa9273b2b7596ecfbb68121d94ea",
                "md5": "100a30c00cac83464cfccfddfbe6dda3",
                "sha256": "f5dab7aebbce16ec9e1dc09fa53d8635143b11af4837c25407ad38b1f2de8af6"
            },
            "downloads": -1,
            "filename": "synping-1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "100a30c00cac83464cfccfddfbe6dda3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 5336,
            "upload_time": "2024-10-02T00:57:02",
            "upload_time_iso_8601": "2024-10-02T00:57:02.539077Z",
            "url": "https://files.pythonhosted.org/packages/f3/45/a89a4b5af3210786bbc65e4b42232de6aa9273b2b7596ecfbb68121d94ea/synping-1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0bdc975f287adf61573263d3aa1cb93bd73b5d6aa675a7918103280353551641",
                "md5": "c5e8ed05a86761ca2b31ce0d0e83b193",
                "sha256": "e21b329d2c5b3733bd9b7021ba25e20285eafc00c57bf48d5121698e5884f86c"
            },
            "downloads": -1,
            "filename": "synping-1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "c5e8ed05a86761ca2b31ce0d0e83b193",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 6783,
            "upload_time": "2024-10-02T00:57:04",
            "upload_time_iso_8601": "2024-10-02T00:57:04.149433Z",
            "url": "https://files.pythonhosted.org/packages/0b/dc/975f287adf61573263d3aa1cb93bd73b5d6aa675a7918103280353551641/synping-1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-02 00:57:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pdrb",
    "github_project": "synping",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "synping"
}
        
Elapsed time: 3.50956s