Skip to main content

easily ping HealthCheck server

Project description

HealthCheck_Pinger

HealthCheck_Pinger is a small and simple Python package that contains class and decorator to easily ping HealthCheck (https://healthchecks.io/) server. Use 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.success

or like this:

from HealthCheck_Pinger import pingDecor
@pingDecor("your uuid here") #or uuid and server url
def your_function():
    your_code

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

healthcheck_pinger-0.0.3.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

healthcheck_pinger-0.0.3-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page