Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A callback-based heartbeat handler

Project Description

A callback-based heartbeat handler


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)])
Release History

Release History

This version
History Node


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
sprockets.handlers.heartbeat-0.1.0.tar.gz (5.2 kB) Copy SHA256 Checksum SHA256 Source Oct 14, 2014

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