Django-Health-Checks
Django-Health-Checks is Django plugin which adds a few health check endpoints (ping, time, and status) to the Django project.
Add health_checks to your settings.py INSTALLED_APPS
INSTALLED_APPS += ('health_checks',)
Add health_checks urls
import health_checks
urlpatterns += [
url('r^', include('health_checks.urls')),
]
Add some custom status jobs
from health_checks import status_job
@status_job(name="PostgreSQL", timeout=5)
def postgresql():
# Perform a ping/query to Postgres
@status_job
def facebook
# Ping some Facebook service.
- You now have the below endpoints:
/ping/ (returns a 200 “pong”)
/time/
{ "epoch": 1.463770977e+09, "local": "2016-05-20T19:02:57.558686471Z", "offset": 0, "utc": "2016-05-20T19:02:57.558686471Z", "zone": "UTC" }/status/
{ "endpoints": [ { "duration": 0.028509, "endpoint": "PostgreSQL" }, { "duration": 0.018747, "endpoint": "facebook", "error": "socket.gaierror: [Errno -2] Name or service not known" }, ... }
get Django-Health-Checks
Install django
easy_install django-health-checks or pip install django-health-checks
Download the latest release from Python Package Index or clone the repository
Metadata
Release files for Django-Health-Checks 0.0.1
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 |
|---|---|---|---|---|
| Django-Health-Checks-0.0.1.tar.gz | 4.3 kB | Without provenance | Details for Django-Health-Checks-0.0.1.tar.gz |
Release files / Django-Health-Checks-0.0.1.tar.gz
| Download URL | Django-Health-Checks-0.0.1.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3dbb1428b516780012898acda5a5fea50d0ca5e94882abe1458b17e161a3250c
|
|
BLAKE2b-256 checksum How to use checksums |
76bd5dbd7fc20a6ce85a2d27090edaf253970eb85bf510928ad74d4af5bc2fc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Django-Health-Checks 0.0.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.