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.
Installation
pip install healthcheck-pinger
How to use
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
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
Built Distribution
File details
Details for the file HealthCheck_Pinger-0.0.6.tar.gz
.
File metadata
- Download URL: HealthCheck_Pinger-0.0.6.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14de3a557a920f54f55affb532414125498ae1baad70c183914a6fe297c719a9 |
|
MD5 | 8c305894ecf067b0de3eec1099a36e66 |
|
BLAKE2b-256 | 7a16a8bcc6d6ee5ee54b384e2218bd8fe1be3ca56e3eb1f2a536de05b133543c |
File details
Details for the file HealthCheck_Pinger-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: HealthCheck_Pinger-0.0.6-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76a85768821d4c8e601a9b75d22acdf1e77add2e3c353616b9c1e54df1c70d5c |
|
MD5 | 9b231182d8e8020ea4d88f3452d7092a |
|
BLAKE2b-256 | ef0302abf7fce4e56cfc2012afbc5d9c785e5caa9a11523b12fa5387bda71910 |