PulseCheck
Unified health, liveness, and readiness checks for Python microservices.
PulseCheck is a framework-agnostic health check library designed for modern Python services.
It provides a pluggable health engine with adapters for FastAPI and Django, built around Kubernetes liveness and readiness semantics.
Features
-
Framework-agnostic core
-
FastAPI adapter
-
Django adapter
-
Pluggable dependency checks:
-
SQLAlchemy (async & sync)
-
Django ORM
-
Redis (async & sync)
-
RabbitMQ (Kombu)
-
Celery worker inspection
-
HTTP dependency checks
-
-
Configurable timeouts
-
Degraded vs unhealthy states
-
Optional dependency extras
-
Zero forced framework pollution
-
Production-ready JSON schema
-
Kubernetes-compatible design
Installation
Core only
pip install pulsecheck-py
With FastAPI support
pip install pulsecheck-py[fastapi]
With Django support
pip install pulsecheck-py[django]
With selected dependency checks
pip install pulsecheck-py[fastapi,redis_async,sqlalchemy_async,rabbitmq,celery]
Only install what you use.
PulseCheck does not force optional frameworks or libraries.
FastAPI Example
from fastapi import FastAPI
from pulsecheck.core import HealthRegistry
from pulsecheck.core.checks import SQLAlchemyAsyncCheck
from pulsecheck.fastapi import make_health_router
from app.database import engine
app = FastAPI()
registry = HealthRegistry(environment="prod")
registry.register(SQLAlchemyAsyncCheck(engine))
app.include_router(make_health_router(registry))
### Sync SQLAlchemy example
from pulsecheck.core.checks import SQLAlchemySyncCheck
registry.register(SQLAlchemySyncCheck(engine))
Endpoints
GET /health
GET /health/live
GET /health/ready
These follow Kubernetes semantics:
-
/live, container is alive -
/ready, dependencies are available -
/health, full aggregated state
Django Example
from pulsecheck.core import HealthRegistry
from pulsecheck.core.checks import DjangoDBCheck
from pulsecheck.django import make_urlpatterns
registry = HealthRegistry(environment="prod")
registry.register(DjangoDBCheck())
urlpatterns = [
*make_urlpatterns(registry)
]
Health Response Format
{
"status": "HEALTHY",
"timestamp": "2026-02-15T12:34:56Z",
"environment": "prod",
"checks": {
"database": {
"status": "HEALTHY",
"response_time_ms": 4.3
}
}
}
Health States
-
HEALTHY, dependency available -
DEGRADED, dependency responding but slow -
UNHEALTHY, dependency unavailable or failing
Optional Dependencies (Extras)
PulseCheck uses optional extras to avoid unnecessary framework coupling.
| Extra | Installs |
|---|---|
| fastapi | FastAPI adapter |
| django | Django adapter |
| redis_async | Async Redis check |
| redis_sync | Sync Redis check |
| rabbitmq | Kombu-based AMQP check |
| celery | Celery inspect check |
| sqlalchemy_async | Async SQLAlchemy check |
| http | HTTP dependency check |
If a dependency is not installed and you try to use its check, a clear runtime error is raised.
Design Philosophy
PulseCheck separates:
-
Core health aggregation logic
-
Dependency checks
-
Framework adapters
This ensures:
-
No tight framework coupling
-
Optional ecosystem integration
-
Clean dependency graphs
-
Microservice-friendly architecture
-
No forced imports of unused frameworks
Optional checks are lazily loaded - installing pulsecheck-py alone does not pull Django, FastAPI, Celery, Redis, etc.
Kubernetes Usage Pattern
Recommended deployment model:
-
API container, checks DB, Redis, required dependencies
-
Worker container, checks broker connectivity
-
Do not couple unrelated services in readiness checks
Health checks should represent required runtime dependencies, not the entire distributed system.
Intended Use
PulseCheck is designed for:
-
Microservices
-
Containerized applications
-
Kubernetes environments
-
Internal APIs
-
Distributed systems
It is not a monitoring system.
It is a lightweight dependency availability indicator.
Testing
PulseCheck is tested against:
-
Python 3.10+
-
FastAPI
-
Django
-
Async and sync dependency scenarios
Contributing
Issues and pull requests are welcome.
Metadata
Release files for pulsecheck-py 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pulsecheck_py-0.2.0.tar.gz | 11.1 kB | With provenance | Details for pulsecheck_py-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pulsecheck_py-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for pulsecheck_py-0.2.0-py3-none-any.whl |
Total release size: 27.5 kB
Release files / pulsecheck_py-0.2.0.tar.gz
| Download URL | pulsecheck_py-0.2.0.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
792d216bae40c1b5427a5b5b8f60aac1410d98b9c41653823f22a08ec40cd154
|
|
BLAKE2b-256 checksum How to use checksums |
87dc605869e0384a496299f15e5d3a72135bd02084dbcd57bc03293c10fc6375
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 3, 2026.
Transparency logRelease files / pulsecheck_py-0.2.0-py3-none-any.whl
| Download URL | pulsecheck_py-0.2.0-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9a30841f35f312ad77c69b95c2e9e081982839dc4c1718555576e7f10f22cf2a
|
|
BLAKE2b-256 checksum How to use checksums |
685dbe114a33c9096110853d4b796fd9c615bd716c464794b5d74cf0336eb16f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 3, 2026.
Transparency logSecurity for pulsecheck-py 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pulsecheck_py-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.