normbeat (Python)
Alerts for jobs that succeed but do nothing. normbeat compares each run's output count with that job's recent runs on the same weekday and tells you when a run loads zero, far too little, or suspiciously much, with no thresholds to set.
▶ 90-second demo · normbeat.com
Zero dependencies. Python 3.9+. MIT licensed.
Offline mode (no account)
Keep history in a local SQLite file and check each run:
normbeat local check --name orders --count 48211
# OK: Loaded 48,211. Normal for Tuesdays (39k–56k).
normbeat local check --name orders --count 0
# ZERO: Loaded 0. Tuesdays usually load 39k–56k. (exit code 2)
- Exit code
0= normal or still learning,2= anomaly (zero / low / high). Use it to fail a pipeline step or trigger your own alert. --period hourly(or seconds) for jobs that run more than twice a day; they're compared by weekday + hour, with fallbacks while history builds up.--at 2026-11-20T02:00to record a run with its real time (useful for backfilling history).- Anomalies are recorded but not learned from, so a week-long outage can't teach normbeat that zero is normal. If volume really changed for good, pass
--acceptand it becomes the new normal. - History lives in
~/.normbeat/history.db(--dborNORMBEAT_DBto change).
Hosted service
import normbeat
with normbeat.run("YOUR_CHECK_KEY") as r: # sends "start"; sends "fail" if the block raises
rows = load_orders()
r.count(rows) # sends success with the count
Or from a shell job: normbeat ping YOUR_CHECK_KEY --count 48211.
The client never breaks your job: network problems are logged and ignored, with a 10-second timeout. Create a free account (5 checks, no card) at https://app.normbeat.com/login.
How the normal range works
For each run, normbeat looks at the last 8 runs on the same weekday (or same weekday and hour for frequent jobs), takes the median and a robust spread (median absolute deviation), and flags a run only if it is both a statistical outlier and a big practical change:
| Alert | When |
|---|---|
| zero | count is 0 and zero isn't normal for that day (works from the first run) |
| too low | below the range and under 50% of the usual count |
| too high | above the range and over 150% of the usual count |
While a weekday has fewer than 5 runs, it's stricter (under 40% / at least 2×), and it needs at least 3 runs before low/high alerts start.
Measured on 200 simulated noisy jobs (±5–30% daily noise, half-volume weekends): 0.03% false alarms over 16,800 runs. Caught: zero rows 100%, duplicate loads (2×) 94%, loads at 30% of normal 88%, at 45% of normal 68%. Partial loads at 60% of normal are deliberately not flagged (4%); that's the price of near-zero false alarms.
Not handled yet: month-end spikes and public holidays.
Development
PYTHONPATH=src python -m unittest discover -s tests
Metadata
Release files for normbeat 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| normbeat-0.1.2.tar.gz | 14.8 kB | With provenance | Details for normbeat-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| normbeat-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for normbeat-0.1.2-py3-none-any.whl |
Total release size: 26.2 kB
Release files / normbeat-0.1.2.tar.gz
| Download URL | normbeat-0.1.2.tar.gz |
|---|---|
| Size | 14.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da1f73da67423e45a33643416ab74f275f824bf99d313261d24b5f802e308694
|
|
BLAKE2b-256 checksum How to use checksums |
35293a15be8e73db0073b4650124d15a7f0e4a25c5edc2df11bf3517083f73e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logRelease files / normbeat-0.1.2-py3-none-any.whl
| Download URL | normbeat-0.1.2-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
914f73052ee6d54263adc9b128b558d3b64a4f349fd1ba0e51a37597c6f78cc6
|
|
BLAKE2b-256 checksum How to use checksums |
1f3eeb9bdca5bcc1bb448c4d1f6a43635ad8721b70473823408a133f67bada22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logSecurity for normbeat 0.1.2
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for normbeat-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logA 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.