fastapi-healthchecks
FastAPI Healthchecks
What it is and what it does
fastapi-healthchecks is a FastAPI extension that registers health check endpoints in your application. It lets you define named probes (like 'readiness' and 'liveness') that run a collection of checks against external dependencies—databases, caches, message brokers, and HTTP services—and report their status via GET endpoints. The package includes built-in checks for PostgreSQL, Redis, RabbitMQ, Ceph, HTTP endpoints, and Pydantic settings validation, and you can extend it with custom Check implementations.
The package depends on fastapi, pydantic, and pydantic-settings. It installs as a pure Python wheel with low friction. Maintenance is dormant (last release February 2024, 925 days ago), but it supports current Python versions (3.10–3.12) and has no known vulnerabilities. It is most useful in containerized or orchestrated environments where external health check endpoints are expected.
Use it for:
- Kubernetes liveness and readiness probes: expose /health/liveness and /health/readiness endpoints for pod health monitoring.
- Database and cache dependency checks: verify PostgreSQL, Redis, or RabbitMQ connectivity at startup or on demand.
- Custom dependency validation: implement checks for internal services, feature flags, or configuration state via the Check interface.
- Load balancer health checks: provide HTTP endpoints for upstream services to determine if the application is ready to receive traffic.
- Monitoring and alerting: expose structured health status for scraping by monitoring systems or dashboards.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Adds configurable health check endpoints to FastAPI applications, supporting checks for PostgreSQL, Redis, RabbitMQ, HTTP endpoints, Ceph, and custom implementations.
Yes, if you need health check endpoints for a FastAPI application and are comfortable with dormant maintenance. The package is stable, has no vulnerabilities, and the core functionality (routing probes and running checks) is unlikely to break. Install it if you are building containerized services or need Kubernetes-compatible health endpoints; skip it if you require active maintenance or expect frequent updates to the check implementations.
Install
fastapi-healthchecks on PyPI
pip
pip install fastapi-healthchecksuv
uv add fastapi-healthcheckspoetry
poetry add fastapi-healthchecksInstalling fastapi-healthchecks
Before you install
Low install friction with a pure-Python wheel. Dormant maintenance status (925 days since last release) means no active development, but the package targets current Python versions (3.10–3.12) and carries no known vulnerabilities.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install fastapi-healthchecks
from fastapi import FastAPI
from fastapi_healthchecks import HealthcheckRouter, Probe, PostgreSqlCheck
app = FastAPI()
app.include_router(
HealthcheckRouter(
Probe(name="readiness", checks=[PostgreSqlCheck(host="db.example.com", username="user", password="pass")])
),
prefix="/health"
)
Verify before relying
- Whether bundled checks (PostgreSQL, Redis, RabbitMQ, Ceph, HTTP) require additional system libraries or network access to function.
- Whether the package is actively maintained despite dormant status, or if it is effectively abandoned.
- Performance characteristics when running many concurrent health checks.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10,<4.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — fastapi, pydantic, pydantic-settings |
| Maintenance | dormant — 925 days since the last release |
| First released | |
| Downloads | 83,894/month — #14,041 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: fastapi_healthchecks-1.1.0-py3-none-any.whl
Keywords: fastapi, healthcheck
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
fastapi-healthAdds a health check endpoint to FastAPI…
permissive · top 15,000 on PyPI
grpcio-health-checkingProvides a standard health-checking service…
permissive · top 1,000 on PyPI
django-health-checkProvides pluggable health check endpoints for…
permissive · top 5,000 on PyPI
py-healthcheckProvides healthcheck and environment-dump…
permissive · top 15,000 on PyPI
fastapi-versioningAdds API versioning to FastAPI applications by…
permissive · top 15,000 on PyPI
updateProvides a check() function to detect available…
permissive · top 15,000 on PyPI
starlette-exporterCollects and exports Prometheus metrics for…
permissive · top 5,000 on PyPI
dockerflowProvides helpers and tools for implementing…
copyleft · top 15,000 on PyPI
slowapiAdds rate limiting to Starlette and FastAPI…
permissive · top 1,000 on PyPI
azure-ai-agentserver-coreProvides the host framework and infrastructure…
permissive · top 5,000 on PyPI