skillfed

fastapi-healthchecks

FastAPI Healthchecks

fastapi-healthchecks v1.1.0 83.9K downloads/30d#14,041 on PyPI
Permissive license MIT DORMANT released

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-healthchecks

uv

uv add fastapi-healthchecks

poetry

poetry add fastapi-healthchecks

Installing 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

License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12

Tags

fastapi health check endpointsreadiness liveness probesfastapi monitoring endpointsdatabase connectivity checksservice availability probesfastapi health statuskubernetes readiness checksfastapi dependency health
kubernetes-readyhealth-probesdependency-checks

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

fastapi-health

Adds a health check endpoint to FastAPI…

permissive · top 15,000 on PyPI

grpcio-health-checking

Provides a standard health-checking service…

permissive · top 1,000 on PyPI

django-health-check

Provides pluggable health check endpoints for…

permissive · top 5,000 on PyPI

py-healthcheck

Provides healthcheck and environment-dump…

permissive · top 15,000 on PyPI

fastapi-versioning

Adds API versioning to FastAPI applications by…

permissive · top 15,000 on PyPI

update

Provides a check() function to detect available…

permissive · top 15,000 on PyPI

starlette-exporter

Collects and exports Prometheus metrics for…

permissive · top 5,000 on PyPI

dockerflow

Provides helpers and tools for implementing…

copyleft · top 15,000 on PyPI

slowapi

Adds rate limiting to Starlette and FastAPI…

permissive · top 1,000 on PyPI

azure-ai-agentserver-core

Provides the host framework and infrastructure…

permissive · top 5,000 on PyPI