A very simple package for checking the status of a service and its components
Free software: MIT license
Documentation: https://pystatuschecker.readthedocs.io.
Examples
from status_checker import StatusChecker
def check_database(config):
# ... check if it's up and either return a dictionary like
# {'available': <bool>} or throw an exception
def check_other_service(config):
# ... same as above
status_checker = StatusChecker(database=check_database, other_service=check_other_service)
status_dict = status_checker.status(config)
The status_dict include the state of the components in the ‘components’ key, the failure_count, and the status of the service as a whole
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Metadata
Release files for py-status-checker 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py-status-checker-0.1.2.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_status_checker-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.6 kB
Release files / py-status-checker-0.1.2.tar.gz
| Download URL | py-status-checker-0.1.2.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb18f4c50917099d043b8f367938a4dec80dcdf139703d5d6c29941e83d38a78
|
|
BLAKE2b-256 checksum How to use checksums |
69a9fcc7ae8425adaba1d7d5f29129e277323f4765a97f31158a8533158bf7e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / py_status_checker-0.1.2-py3-none-any.whl
| Download URL | py_status_checker-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
adf20e2acec8d2e73faf73f4b94738f417636094ef922411484463fb7add493b
|
|
BLAKE2b-256 checksum How to use checksums |
c0c2ce55b089e83e3df11f55a0ba3dcb0a9712accc3a5d43b277017d3ca40ed2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |