Skip to main content

tockward

Heartbeat client for Tockward: know when your cron jobs, scripts and devices go silent.

Your job reports in each time it runs. If a report doesn't arrive on time, Tockward alerts you by email or Telegram.

Install

npm install -g tockward      # Node 18+
pip install tockward         # Python 3.8+

Both give you the same tockward command. No dependencies.

Command line

tockward ping <token>                  # report a successful run
tockward fail <token>                  # report a failed run
tockward run <token> -- ./backup.sh    # run a command, then report success or failure

tockward run passes the command's output through, sends its duration along, and exits with the command's own exit code, so it drops straight into a crontab:

0 3 * * *  tockward run abc123 -- /usr/local/bin/backup.sh

<token> is the monitor's token, or its full ping URL copied from the dashboard.

In code

const tockward = require('tockward');
await tockward.ping('abc123');
await tockward.fail('abc123');
import tockward
tockward.ping("abc123")
tockward.fail("abc123")

Delivery is retried twice with a 10-second timeout per attempt; an unknown token fails at once.

Without this package

It's just an HTTP request, so curl works too:

curl -fsS https://ping.tockward.com/v1/beat/<token>        # success
curl -fsS https://ping.tockward.com/v1/beat/<token>/fail   # failure

Settings

Variable Default Meaning
TOCKWARD_URL https://ping.tockward.com server to report to

License

MIT. Questions: support@tockward.com

Metadata

Release files for tockward 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 tockward 0.1.0
File Size Uploaded Provenance Actions
tockward-0.1.0.tar.gz 3.8 kB Without provenance Details for tockward-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tockward 0.1.0
File Interpreter ABI Platform Actions
tockward-0.1.0-py3-none-any.whl Python 3 none any Details for tockward-0.1.0-py3-none-any.whl

Total release size: 8.8 kB

Release files / tockward-0.1.0.tar.gz

Download URL tockward-0.1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9d2b3d3da4bded53e8f5f6b530256e14c278f609d2121d92b7127457d9272935
BLAKE2b-256 checksum
How to use checksums
bdb083e0abda835ee647c6ab1a8b8c32f79a34ca80561475a938e8d0fd054c23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / tockward-0.1.0-py3-none-any.whl

Download URL tockward-0.1.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
325b8bdea470f8728fb81f2389cc1ce31fd33b05f8c65ef847aafa0017a98382
BLAKE2b-256 checksum
How to use checksums
a4678cd1b5ce5c31e632e088e5940b5970e2a7048789bbea80a429ce74db4602
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for tockward 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

2 release files No provenance

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