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
pystatuschecker-0.1.3.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file pystatuschecker-0.1.3.tar.gz
.
File metadata
- Download URL: pystatuschecker-0.1.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36a2c3f7ce9765f0fc3dedbd850398cfbf923f2f39ab6c0d1c17d33c7e68ac6b |
|
MD5 | 385fd1645f933403b950cdbabdd780a5 |
|
BLAKE2b-256 | b0bb17c68b215e7ef58b9b2e590f5d0c67531cdd0a28ae32fd46d2dc439c5b38 |
File details
Details for the file pystatuschecker-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: pystatuschecker-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13f9220f0c973ce4e654ba16743d77748c3b1a06f5f57db817894c413f928cbe |
|
MD5 | 97db77d590e84694decbbcde26b3f20a |
|
BLAKE2b-256 | 2916450b8eeebeba8ed67b4e3ffe28a6addce5b6b0f3abf6593b546ccd50414d |