Skip to main content

sprockets.handlers.heartbeat

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

Metadata

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 Provenance Actions
sprockets.handlers.heartbeat-0.1.0.tar.gz 5.2 kB Without provenance Details for sprockets.handlers.heartbeat-0.1.0.tar.gz

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

Security for sprockets.handlers.heartbeat 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

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