Simple heartbeat library
Project description
Simple heartbeat library
This is designed to work with the simple heartbeat app to send heartbeat status notifications to the server, and ignore errors and such.
Usage
- Get a copy of the simple heartbeat library from pypi.
- Spin up a copy of the heartbeat server, and then set
heartbeat.heartbeat_app_url
to the URL of your heartbeat server. - Optional: Call
heartbeat.initialise_app(app_name, expiry_period)
to initialise your app in the heartbeat server.- This is mostly useful for initialising an expiry period for the app. If it fails to contact the heartbeat server, it will propogate the exception up.
- Periodically call
heartbeat.update_heartbeat(app_name)
to confirm your application is online.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file simple-heartbeat-0.1.2.tar.gz
.
File metadata
- Download URL: simple-heartbeat-0.1.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9860bca61e730b73b449a18580a02a19ac3577e5cf59fcbb9699884e4ff18d2 |
|
MD5 | 2188273f8d850836af665e1c199b1683 |
|
BLAKE2b-256 | 719379a888097f6dc9133460ef78324b49b3cb09ef4ebc012e59a6889cd49182 |