A very simple package for checking the status of a service and its components
Project description
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.
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for py_status_checker-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bad77fac19370ba13a51ef60b6de0d274ca9c8b69987ea5aac4350987b389e7 |
|
MD5 | d67c75f453734bd8cf36d04b242da1ee |
|
BLAKE2b-256 | ae30859831bd89d1fe03ab1115ee56f4449c0f34d8cb182b50207a11439dc7e4 |