Skip to main content

JC SRE NETPROBE

PyPI Python CI License

Network health checks and utilities for Telecom, Networking, DevOps and SRE.

Features

  • TCP connectivity checks with latency measurement
  • DNS resolution checks
  • HTTP/HTTPS health checks
  • IPv4 and IPv6 network information
  • TLS certificate validation and expiration information
  • Configurable timeouts for TCP, HTTP and TLS checks
  • JSON output for automation and scripting
  • CLI input validation
  • Operational exit codes

Installation

Requires Python 3.11+.

pip install jc-sre-netprobe

Usage

jc-sre-netprobe tcp HOST PORT [--timeout SECONDS]
jc-sre-netprobe dns HOSTNAME
jc-sre-netprobe http URL [--timeout SECONDS]
jc-sre-netprobe network CIDR
jc-sre-netprobe tls HOST [--port PORT] [--timeout SECONDS]

Examples

TCP connectivity check:

jc-sre-netprobe tcp github.com 443

TLS certificate check:

jc-sre-netprobe tls github.com

TLS check with a custom timeout:

jc-sre-netprobe tls github.com --timeout 3

JSON output:

jc-sre-netprobe --json tls github.com

Exit codes

The CLI uses exit codes designed for automation, monitoring and scripting:

Code Meaning
0 Check completed successfully / target is healthy
1 Target is unhealthy or unavailable
2 Invalid CLI usage or input

Example:

jc-sre-netprobe tcp github.com 443
echo $?

Python API

from jc_sre_netprobe import tcp_check

result = tcp_check("github.com", 443)

print(result)

TLS checks are also available through the Python API:

from jc_sre_netprobe import tls_check

result = tls_check("github.com")

print(result)

Development

git clone https://github.com/jacivaldocarvalho/jc-sre-netprobe.git
cd jc-sre-netprobe

python -m venv .venv
source .venv/bin/activate

pip install -e ".[dev]"

Quality checks:

ruff check .
mypy src tests
pytest --cov=jc_sre_netprobe

CI/CD

GitHub Actions validates the project with Python 3.11, 3.12 and 3.13 using:

  • Ruff
  • Mypy
  • Pytest
  • Coverage
  • Package build

Releases are published to PyPI using GitHub Actions, OpenID Connect (OIDC) and PyPI Trusted Publishing, without long-lived PyPI credentials.

License

Distributed under the MIT License. See LICENSE for more information.

Author

Jacivaldo Carvalho

Telecommunications Engineer | DevOps | SRE | Networking

Metadata

Release files for jc-sre-netprobe 0.2.0

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

Source distribution (sdist)

Source distribution for jc-sre-netprobe 0.2.0
File Size Uploaded
jc_sre_netprobe-0.2.0.tar.gz 11.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jc-sre-netprobe 0.2.0
File Interpreter ABI Platform
jc_sre_netprobe-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.9 kB

Release files / jc_sre_netprobe-0.2.0.tar.gz

Download URL jc_sre_netprobe-0.2.0.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e84f95d1fdc565cab1005160f73ed85412aea621ed4d59ac90e6794ba58fcd44
BLAKE2b-256 checksum
How to use checksums
f07ee2dac7bf4b61c3d4bb5c2418436a4e3c146edff79dfd61800f505b8db1d9
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 20, 2026.

Transparency log

Release files / jc_sre_netprobe-0.2.0-py3-none-any.whl

Download URL jc_sre_netprobe-0.2.0-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b39618adf9abf8913af49f75dee4b4d9a59f19693d69062f7ae3c24771c6f66
BLAKE2b-256 checksum
How to use checksums
f35a1accc817424cb2cbc7624fd72e5b2f2cd238283a59dd5afa8317363c9227
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 20, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.0

2 release files

This release

0.2.0 This release

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