The Lupaxa SRE Toolbox
Part of The Lupaxa Project
lupaxa-tcp-port-ping
Repeatedly connect to a TCP host and port and report latency.
Features
- Open one TCP connection, time the handshake, and close it
- Repeat after a configurable delay (default 1 second)
- Required host and TCP port, with a 1 second socket timeout by default
--countfor a finite run; omit it to run until Ctrl-C- Summary of total, pass, fail, and failure percentage
- Library API (
probe_tcp_port,run_probes,ProbeResult) - Fully typed, linted, formatted, and tested
- No runtime dependencies beyond the standard library
Installation
From PyPI
pip install lupaxa-tcp-port-ping
From source (development mode)
pip install -e ".[dev]"
Requires Python 3.13+. No runtime dependencies.
Library quick start
from lupaxa.tcp_port_ping import probe_tcp_port, run_probes
one = probe_tcp_port("example.com", 443)
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)
CLI quick start
tcp-port-ping --help
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
You can also run the CLI as a module:
python -m lupaxa.tcp_port_ping --help
python -m lupaxa.tcp_port_ping --version
Documentation
Online documentation:
Source repository:
Serve docs locally
From a clone of the repository:
make mkdocs-serve
Then open the local URL printed by MkDocs in your browser.
Development
Clone the repository and install with Make:
make init # first-time makefile-skills checkout
make python-install-dev # editable install with [dev]
make python-check # lint, type-check, and test
Release files for lupaxa-tcp-port-ping 0.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 | |
|---|---|---|---|
| lupaxa_tcp_port_ping-0.1.1.tar.gz | 7.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lupaxa_tcp_port_ping-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.8 kB
Release files / lupaxa_tcp_port_ping-0.1.1.tar.gz
| Download URL | lupaxa_tcp_port_ping-0.1.1.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec1e69e166685027def0d7efc07c0922bfafb2349cf8eecd6f969d8ed0c0a519
|
|
BLAKE2b-256 checksum How to use checksums |
9a798bea5cd9dfbff29db21990f91c705d98bc16d323609dc34b2167a3eb3915
|
| 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 23, 2026.
Transparency logRelease files / lupaxa_tcp_port_ping-0.1.1-py3-none-any.whl
| Download URL | lupaxa_tcp_port_ping-0.1.1-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b9a2ede1777f9cc5c853273999819e79f46102a82ce6f8d4e7019187136b1f8e
|
|
BLAKE2b-256 checksum How to use checksums |
c504ce2c2a8053c20b181fa23a2539128ca4d6297c7499e90795350f59fce512
|
| 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 23, 2026.
Transparency log