Skip to main content
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.

Download files

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

Source Distribution

py-status-checker-0.1.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_status_checker-0.1.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file py-status-checker-0.1.2.tar.gz.

File metadata

File hashes

Hashes for py-status-checker-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bb18f4c50917099d043b8f367938a4dec80dcdf139703d5d6c29941e83d38a78
MD5 5bb3647c6e34974e75df8baa7c7ef030
BLAKE2b-256 69a9fcc7ae8425adaba1d7d5f29129e277323f4765a97f31158a8533158bf7e5

See more details on using hashes here.

File details

Details for the file py_status_checker-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for py_status_checker-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 adf20e2acec8d2e73faf73f4b94738f417636094ef922411484463fb7add493b
MD5 3bad5c0507283066a82be622f3a04bb0
BLAKE2b-256 c0c2ce55b089e83e3df11f55a0ba3dcb0a9712accc3a5d43b277017d3ca40ed2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page