py-healthcheck
Adds healthcheck endpoints to Flask or Tornado apps
What it is and what it does
py-healthcheck is a lightweight library that adds HTTP endpoints to applications to expose application health status and environment information. It lets you register custom check functions that verify dependencies are running and return pass/fail results with diagnostic messages. The library also provides an EnvironmentDump class that exposes metadata about the operating system, Python environment, running process, and application config—with built-in scrubbing to avoid leaking secrets.
The package is designed for integration with external monitoring tools. It includes in-process caching (27 seconds for successes, 9 seconds for failures by default) to reduce load on backend services when monitoring systems poll the endpoint frequently. Check functions are simple callables that return a tuple of (bool, str) indicating pass/fail and a message.
Use it for:
- Expose a healthcheck endpoint for load balancers or monitoring services to verify your application is running and dependencies are available.
- Verify critical service connectivity before responding to requests by adding custom check functions.
- Expose application environment and configuration metadata via an endpoint for debugging and operational visibility.
- Reduce backend service strain by caching healthcheck results in process memory to handle frequent polling from monitoring infrastructure.
- Integrate with applications to expose health and environment data via HTTP.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides healthcheck and environment-dump endpoints for web applications to expose application status and dependency health to monitoring systems.
No. The package is abandoned (last release 2020-05-20) and receives no maintenance or security updates. While it has low install friction and no dependencies, the lack of active maintenance poses a risk for compatibility with current framework versions and leaves any issues unresolved. For new projects, choose an actively maintained healthcheck library; for existing deployments, evaluate whether you can migrate or maintain a fork.
Install
py-healthcheck on PyPI
pip
pip install py-healthcheckuv
uv add py-healthcheckpoetry
poetry add py-healthcheckInstalling py-healthcheck
Before you install
Low install friction with no runtime dependencies. However, the package is abandoned—last release was 2020-05-20, with no commits since 2022-11-24. No recent maintenance or security updates.
License in practice
MIT license is permissive and imposes no restrictions on use, modification, or distribution in commercial or private projects.
Quickstart
pip install py-healthcheck
from healthcheck import HealthCheck
health = HealthCheck()
def redis_available():
return True, "redis ok"
health.add_check(redis_available)
health.run()
Verify before relying
- Whether the package works correctly with modern versions of Flask and Tornado given its 2020 last release date.
- Whether Python 3.8+ compatibility is confirmed, as classifiers list Python 2.7 and generic Python 3 without specifics.
- Current compatibility status with actively maintained web frameworks.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,277 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 234,678/month — #9,019 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: py_healthcheck-1.10.1-py3-none-any.whl
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
django-health-checkProvides pluggable health check endpoints for…
permissive · top 5,000 on PyPI
django-ebhealthcheckAutomatically adds an Elastic Beanstalk…
permissive · top 15,000 on PyPI
fastapi-healthchecksAdds configurable health check endpoints to…
permissive · top 15,000 on PyPI
django-watchmandjango-watchman exposes a status endpoint that…
permissive · top 15,000 on PyPI
pystackPyStack inspects the stack frames of a running…
permissive · top 15,000 on PyPI
types-grpcio-health-checkingProvides type stubs for grpcio-health-checking,…
permissive · top 15,000 on PyPI
Flask-GraphQLAdds a GraphQL endpoint to Flask applications,…
permissive · top 15,000 on PyPI
dockerflowProvides helpers and tools for implementing…
copyleft · top 15,000 on PyPI
bugsnagBugsnag is an error monitoring notifier that…
permissive · top 15,000 on PyPI
dbt-copilot-pythonProvides utility functions for running Django…
unclear · top 15,000 on PyPI