HealthCheck_Pinger is a small and simple Python package that contains class and decorator to easily ping HealthCheck (https://healthchecks.io/) server.
pip install healthcheck-pingerUse it like this:
from HealthCheck_Pinger import PingHC
#sends start healthcheck
ping = PingHC("your uuid here") #or PingHC("your uuid here","your server url here")
try:
your_code
except:
ping.failure
else:
ping.successor like this:
from HealthCheck_Pinger import pingDecor
@pingDecor("your uuid here") #or uuid and server url
def your_function():
your_code