Skip to main content

A callback-based heartbeat handler

Version Downloads Status Coverage License

Installation

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

pip install sprockets.handlers.heartbeat

Documentation

https://sprocketshandlersheartbeat.readthedocs.org

Requirements

Example

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
heartbeat.register_callback(check_database)

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

Version History

Available at https://sprocketshandlersheartbeat.readthedocs.org/en/latest/history.html

Release files for sprockets.handlers.heartbeat 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sprockets.handlers.heartbeat 0.1.0
File Size Uploaded
sprockets.handlers.heartbeat-0.1.0.tar.gz 5.2 kB Details

Release files / sprockets.handlers.heartbeat-0.1.0.tar.gz

Download URL sprockets.handlers.heartbeat-0.1.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a7212ec76648729f4fc055910be72888e6da317975f7994c78b7ab1c2eab1395
BLAKE2b-256 checksum
How to use checksums
626598b3770441d720b408be0209c4018580203c11502aead5428c2fc62a93ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

0.0.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page