
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
A lightweight command-line tool for performing HTTP health checks using Python's standard library. Exits with code 1 on HTTP errors.
A simple command-line tool to perform health checks on a given URL using Python's standard library. Exits with code 1
on HTTP errors.
For a minimal installation in Docker:
ADD --chmod=755 https://raw.githubusercontent.com/mgaitan/healthyurl/main/healthyurl.py /usr/bin/healthyurl
Altenatively you can use uv:
uv tool install healthyurl
Or pip
pip install --user healthyurl
healthyurl <url>
Checks the URL and exits with 1
on any HTTP errors. Or in quiet mode:
healthyurl -q <url>
healthyurl
?When using slim images like Python-based microservices, installing curl
adds around 5Mb (4.3% of python:3.12-slim-bookworm
size). healthyurl
uses only Python's standard library and does not require installing additional packages, making it more efficient for containers that need to stay small and lightweight.
For example, to use healthyurl
as part of a health check in a Docker Compose file, you can define it like this:
services:
myservice:
image: myservice:latest
healthcheck:
test: ["CMD", "healthyurl", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
This configuration runs healthyurl
every 30 seconds, and it checks the health of the service at http://localhost:8080/health
. If the health check fails (returns an HTTP error), the service will be marked as unhealthy.
In the same way, To use healthyurl
in an ECS task definition, you can configure the health check like this:
{
"containerDefinitions": [
{
"name": "myservice",
"image": "myservice:latest",
"healthCheck": {
"command": [
"CMD-SHELL",
"healthyurl -q http://localhost:8080/health"
],
"interval": 30,
"timeout": 10,
"retries": 3,
"startPeriod": 10
}
}
]
}
Both examples show how healthyurl
can replace curl
, wget
etc for basic health checks, helping reduce image size and build times, especially for lightweight Python-based containerized applications.
FAQs
A lightweight command-line tool for performing HTTP health checks using Python's standard library. Exits with code 1 on HTTP errors.
We found that healthyurl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.