Skip to main content

HTTP/HTTPS endpoint healthcheck.

Project description

Checking Health

Checking Health is a command-line tool for performing HTTP/HTTPS endpoint health checks with clean, real-time, and highly readable output.

It helps you quickly validate APIs, services, and environments with useful diagnostics like latency, response size, content type, and more.


✨ Features

  • ⚡ Real-time execution (results printed as they complete)

  • 🎯 Endpoint identification via URL path (TYPE)

  • 📊 Rich metrics per request:

    • Status (OK / FAIL)
    • HTTP status code
    • Domain & IP
    • Content-Type
    • Response size
    • Request time (REQ)
    • Total time (TIME)
    • HTML <title> (when available)
  • 🎨 Clean and colorful terminal output

  • 📈 Summary with aggregated metrics

  • 🧪 Fully testable with pytest

  • 📦 Distributed via PyPI


📦 Installation

Install directly from PyPI:

pip install checking-health

🔗 https://pypi.org/project/checking-health


▶️ Usage

checking-health endpoints.txt --timeout 3

📄 Input File Format

Provide a .txt file with one endpoint per line:

# success example
google.com

# failure example
google.comm

https://api.example.com/status

Rules

  • Empty lines are ignored
  • Lines starting with # are ignored
  • URLs without scheme default to https://

📊 Example Output

TYPE         STATUS   HTTP   DOMAIN                                   IP              CONTENT-TYPE        SIZE   REQ(ms)  TIME(ms)  TITLE
-------------------------------------------------------------------------------------------------------------------------------
health       OK       200    google.com                               142.250.191.78  text/html           17.4KB       31        53  Google
status       FAIL     -      google.comm                              -               -                    0B          14        14  -

Summary
------------------------------
Total        : 2
Success      : 1
Failure      : 1
REQ average  : 22ms
TIME average : 33ms

🧠 Concepts

TYPE

Derived from the last segment of the URL path:

URL TYPE
/healthcheck healthcheck
/healthcheck/status status
/ root

REQ(ms)

Time until the server starts responding (latency).


TIME(ms)

Total time including response download.


SIZE

Actual size of the response body.


TITLE

Extracted from HTML responses (<title> tag), when available.


🔍 Use Cases

  • API health validation
  • Deployment smoke tests
  • Environment verification (dev/staging/prod)
  • Quick debugging of network or DNS issues
  • Bulk endpoint checking

⚠️ Limitations

  • Does not break down DNS / TCP / TLS timings
  • Downloads full response body (can impact large responses)
  • Runs sequentially (no parallel execution)

🧪 Testing

Install pytest:

pip install pytest

Run tests:

pytest -q

👤 Author

André Argôlo CTO • Software Architect • DevOps


📜 Licença

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

checking_health-1.0.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

checking_health-1.0.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file checking_health-1.0.0.tar.gz.

File metadata

  • Download URL: checking_health-1.0.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for checking_health-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4f2b5c64f333fa028c89edcdbdfb5f712e86e884e52ca29af8618618d4d3827d
MD5 c33aa1f6b9c806efde39d722ea9804d4
BLAKE2b-256 364767503a71e03486dd960c3e8b53756621bf5f92e883e30c73cb6806a6a7a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for checking_health-1.0.0.tar.gz:

Publisher: release.yml on argolo/checking-health

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file checking_health-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for checking_health-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24395f0f67e593b78097c8d0c0605dd986f0ff7cc35ff458fbae71e85d965159
MD5 10c777fb87f6607a68c8e2efcf1c782e
BLAKE2b-256 c9fd5402343d2d3c00fcd032dd1630d840ff7e39d8969ca0b0f576d9ed0288c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for checking_health-1.0.0-py3-none-any.whl:

Publisher: release.yml on argolo/checking-health

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page