Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

A network service utility for monitoring service health

Project Description

healthysnake is a flexible levels-based monitoring library for your application’s network dependencies. Applications may have both hard dependencies which are required for the app to continue running and soft which allow the app to continue with degraded service.

All times are in UTC.


pip install healthysnake

(when it gets onto pip hopefully)

Example usage

from datetime import timedelta
from healthysnake import healthcheck, levels

# initialise the health check for your application
hc = healthcheck.HealthCheck('your_application_name')

# health check functions simply need to return true or false
def check_redis_health():
    # check you can connect to redis
    return True

# add the dependency
hc.add_dependency('redis', check_redis_health)

def check_postgres_health():
    # check you can connect to postgres
    return True

# optionally add a specific interval, defaults to 1 minute
hc.add_dependency('postgresql', check_postgres_health, interval=timedelta(seconds=120))

def check_external_service_health():
    return True

# for non vital services, you can mark them as a "soft" dependency, one that your app can continue
# without
hc.add_dependency('non_vital_service', check_external_service_health, level=levels.SOFT)
Release History

Release History

This version
History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
healthysnake-0.1.0.tar.gz (3.6 kB) Copy SHA256 Checksum SHA256 Source Jul 4, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting