A very simple package for checking the status of a service and its components"
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github
docs
tests
.gitignore
.travis.yml
CONTRIBUTING.rst
HISTORY.rst
LICENSE
MANIFEST.in
Makefile
README.rst
requirements_dev.txt
setup.py
status_checker.py
tox.ini

README.rst

Status Checker

Documentation Status Updates

A very simple package for checking the status of a service and its components

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.