Skip to main content

A callback-based heartbeat handler

Project description

A callback-based heartbeat handler

Version Downloads Status Coverage License


sprockets.handlers.heartbeat is available on the Python Package Index and can be installed via pip or easy_install:

pip install sprockets.handlers.heartbeat



This examples demonstrates how to use sprockets.handlers.heartbeat by registering the check_database method that is invoked each time a request to /heartbeat is made.

from sprockets.handlers import heartbeat
from tornado import web

def check_database():
    """Any check method should return a bool specifying the check is ok.

    :rtype: bool

    return True

# Register the check method

# Create a Tornado application
app = web.Application([('/heartbeat', heartbeat.HeartbeatHandler)])

Download files

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

Files for sprockets.handlers.heartbeat, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size sprockets.handlers.heartbeat-0.1.0.tar.gz (5.2 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 DigiCert DigiCert EV certificate StatusPage StatusPage Status page