Web Status Checker
A health checker for a website with a is-healthy route.
This is mostly intended to be used in my projects.
Usage
It is expected that the server url you are querying will return a "🆗" with a 200 status code for a response. Sending anything else will result in the server signalling an error.
To run the program from CLI the following is the help dialogue:
usage: web_health_checker [-h] [--timeout TIMEOUT] url
Health check website
positional arguments:
url url to query for status
optional arguments:
-h, --help show this help message and exit
--timeout TIMEOUT timeout before connection fail
--allow-unverified allows for invalid self-signed certificates to be valid
Example:
python -m web_health_checker http://localhost:8080/is-healthy
After the command has been run depending on the state of the server different results will be output. These are shown below. The output will be sent to stdout if there is no error and stderr if there is an error.
| Output | Why | Is Error |
|---|---|---|
🆗 |
Everything is fine | No |
⛔ missing '🆗' in response |
The server does not return the expected ok response | Yes |
⛔ http status '<status-code>' |
The server sent incorrect status code | Yes |
⛔ url error <reason> |
A URL error was detected | Yes |
⛔ remote closed without response |
The remote server closed the connection | Yes |
Metadata
Release files for web-health-checker 1.3.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 | |
|---|---|---|---|
| web-health-checker-1.3.1.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| web_health_checker-1.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.3 kB
Release files / web-health-checker-1.3.1.tar.gz
| Download URL | web-health-checker-1.3.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8d7e0d49d3c589c61f530c9d6515d5f5cea597236f2bd81c2d95d83331ef6a3
|
|
BLAKE2b-256 checksum How to use checksums |
e5ef52a600244c0fc08b6a6540b2fa29728a88ced869462d53b14ff5a7b0f6cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / web_health_checker-1.3.1-py3-none-any.whl
| Download URL | web_health_checker-1.3.1-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1a6ee9039da50e4c80126ec99ee47c0848f00021bc4a4b631d5d71855be0362
|
|
BLAKE2b-256 checksum How to use checksums |
f623bcbcebdab5a8fd1a022cc4073b61cbec51812996f604e0219f9b6fc4196e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|