fastapi-health
Heath check on FastAPI applications.
Decision gist · record as of 2026-08-14
Yes, if you need a simple health check endpoint and can accept that the package is no longer maintained. The library is small, has no known vulnerabilities, and works with Python versions 3.6 through 3.9. However, verify compatibility with your specific FastAPI version before deploying to production, and be prepared to fork or replace it if FastAPI introduces breaking changes.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires fastapi as a runtime dependency; Python 3.6.1 or later.
- Low install friction with a single runtime dependency on fastapi.
- However, the package is abandoned—last release was 2021-08-20 and last commit 2023-07-30—so it will not receive bug fixes or updates.
License · maintenance · safety
MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions, making it safe to integrate into most projects without licensing concerns.
last release 2021-08-20 (1820 days) · last repo commit 2023-07-30 · 188 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 237,494 downloads/mo, #8,956 on PyPI
Alternatives
Verify before relying
pip install fastapi-health
from fastapi import FastAPI, Depends
from fastapi_health import health
def is_database_online(session: bool = Depends(lambda: True)):
return session
app = FastAPI()
app.add_api_route("/health", health([is_database_online]))- Whether the package remains compatible with FastAPI versions released after 2023-07-30
- Whether condition callables support async functions or only synchronous callables
- How the package handles timeouts or long-running health check conditions
What it is and what it does
fastapi-health is a lightweight library that implements the Health Check API pattern for FastAPI applications. It provides a single `health()` function that accepts a list of condition callables and generates a health check endpoint that evaluates each condition and returns an appropriate HTTP response (200 for success, 503 for failure by default). Each condition can return either a boolean or a dictionary; conditions can also use FastAPI's dependency injection system to access resources like database sessions.
The package is designed to be minimal and straightforward: you define your health conditions as functions, pass them to `health()`, and attach the result to your FastAPI app as a route. It supports customization of response bodies and HTTP status codes for both success and failure scenarios. The package depends only on fastapi and has no other external runtime dependencies.
Use it for
- Kubernetes liveness and readiness probes that check whether your FastAPI service and its dependencies are operational
- Load balancer health checks that verify database connectivity and other critical service dependencies before routing traffic
- Monitoring dashboards that poll a standardized health endpoint to track service availability across a microservices cluster
- Graceful shutdown detection by returning failure status when the service is shutting down or entering maintenance mode
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need a simple health check endpoint and can accept that the package is no longer maintained.
The library is small, has no known vulnerabilities, and works with Python versions 3.6 through 3.9. However, verify compatibility with your specific FastAPI version before deploying to production, and be prepared to fork or replace it if FastAPI introduces breaking changes.
Install
fastapi-health on PyPI
Before you install
Low install friction with a single runtime dependency on fastapi. However, the package is abandoned—last release was 2021-08-20 and last commit 2023-07-30—so it will not receive bug fixes or updates.
Requires fastapi as a runtime dependency; Python 3.6.1 or later.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, making it safe to integrate into most projects without licensing concerns.
Quickstart
pip install fastapi-health
from fastapi import FastAPI, Depends
from fastapi_health import health
def is_database_online(session: bool = Depends(lambda: True)):
return session
app = FastAPI()
app.add_api_route("/health", health([is_database_online]))
Verify before relying
- Whether the package remains compatible with FastAPI versions released after 2023-07-30
- Whether condition callables support async functions or only synchronous callables
- How the package handles timeouts or long-running health check conditions
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.6.1,<4.0.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagefastapi |
| Maintenance | Abandoned 1,820 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 237,494 / month, #8,956 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Build ToolsTopic :: Software Development :: Libraries :: Python Modules |
Evidence: fastapi_health-0.4.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “fastapi health check endpoint”
- fastapi-healthAdds a health check endpoint to FastAPI applications by evaluating a…
- fastapi-healthchecksAdds configurable health check endpoints to FastAPI applications,…
- py-healthcheckProvides healthcheck and environment-dump endpoints for web…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also fastapi-healthchecks · dockerflow · grpcio-health-checking · django-watchman · fastapi-users · fastapi-injectable · fastapi-decorators · fastapi-cors · fastapi-profiler · http-exceptions