Skip to main content

SRE Toolbox

TCP Port Ping

Repeatedly connect to a TCP host and port and report latency.

Install

pip install lupaxa-tcp-port-ping
tcp-port-ping --help

CLI

tcp-port-ping --server example.com --port 80
tcp-port-ping -s example.com -p 443 -d 1
tcp-port-ping -s 192.0.2.10 -p 22 --count 5 --timeout 0.5
python -m lupaxa.tcp_port_ping --version

The tool opens a TCP connection, times the handshake, closes it, and repeats after --delay seconds (default 1). --server and --port are required. --timeout bounds the socket (default 1 second). Omit --count to run until Ctrl-C; the summary then prints total, pass, fail, and the failure percentage.

Library

from lupaxa.tcp_port_ping import probe_tcp_port, run_probes

one = probe_tcp_port("example.com", 443, timeout=1.0)
print(one.ok, one.elapsed_ms, one.detail)

summary = run_probes("example.com", 443, count=3, delay=0)
print(summary.total, summary.passed, summary.failed, summary.fail_percent)

Development

make init
make python-install-dev
make python-check
make mkdocs-serve

Documentation

The published guide is at https://tcp-port-ping.thelupaxaproject.org/.

Site Markdown lives in mkdocs/.

The Lupaxa Project Footer

Metadata

Release files for lupaxa-tcp-port-ping 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lupaxa-tcp-port-ping 0.1.3
File Size Uploaded
lupaxa_tcp_port_ping-0.1.3.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lupaxa-tcp-port-ping 0.1.3
File Interpreter ABI Platform
lupaxa_tcp_port_ping-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 15.8 kB

Release files / lupaxa_tcp_port_ping-0.1.3.tar.gz

Download URL lupaxa_tcp_port_ping-0.1.3.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9480add73628803724896ab588f93753c16861da1e25bdca9f3b824d150ba1d6
BLAKE2b-256 checksum
How to use checksums
569edd14d2d7fffe2be5ff43c3ceb4d0866e0e17437976a0baf2076491e5224c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release files / lupaxa_tcp_port_ping-0.1.3-py3-none-any.whl

Download URL lupaxa_tcp_port_ping-0.1.3-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c09c3abfd0f5f57f70ffc63d1d7cdbba823f2d2a9f6787bc7578c8b4ad37763
BLAKE2b-256 checksum
How to use checksums
1b07284cbad9fd43fa18d4385b52455368cbdb53d9e8d3f3aaf44753b784d85d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.5

2 release files

0.1.4

2 release files

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page