Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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

Project description

https://img.shields.io/pypi/v/pystatuschecker.svg https://img.shields.io/travis/timmartin19/pystatuschecker.svg 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for py-status-checker, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size py_status_checker-0.1.2-py3-none-any.whl (3.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size py-status-checker-0.1.2.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page