pingloom
Send an alert to your whole team's phones with one call. Python client for PingLoom.
Your server, cron job, CI or AI agent sends an event, every phone on the team gets a push notification, and one person taps "I've got this" so everyone sees who owns it.
- Standard library only, no dependencies. Python 3.9+.
- Safe retries: a retry never creates a duplicate alert.
- Server-side only: keep your API key out of browser and mobile code.
Get an API key
Sign up at pingloom.dev, create a project and copy its API key (pl_live_...). The key is shown once. PingLoom is in early access: join the waitlist on the site if sign-up is not open for you yet.
Install
pip install pingloom
Send your first alert
export PINGLOOM_API_KEY=pl_live_...
from pingloom import PingLoom
pl = PingLoom() # reads PINGLOOM_API_KEY
pl.send("Nightly backup failed", body="db-main: disk full", channel="ops", priority="high")
That's it: the phones of everyone subscribed to ops buzz.
Examples
# at the end of a long job
try:
render_video()
pl.send("Render finished", priority="low")
except Exception as exc:
pl.send("Render failed", body=str(exc)[:2000], priority="high")
raise
# a cron job: one alert per day, even if the script runs twice
from datetime import date
pl.send("Daily report sent", channel="reports", idempotency_key=f"report-{date.today()}")
Options
send(title, body=None, channel=None, priority=None, data=None, action_url=None, idempotency_key=None) returns the event ID.
| Argument | Notes |
|---|---|
title |
Up to 120 characters |
body |
Up to 2,000 characters |
channel |
Who gets it, for example ops or deploys |
priority |
low, normal (default) or high |
data |
Extra JSON-able dict, up to 8 KB, attached to the event |
action_url |
An https link opened from the alert |
idempotency_key |
Send the same key twice and only one alert goes out |
status(event_id) returns the event's state (needs a key with the events:read scope). provider_accepted means the push service accepted it, not that a phone has shown it.
Client options: api_key, timeout, max_retries, backoff, and base_url (only needed for a self-hosted or test server; also PINGLOOM_BASE_URL).
Errors and retries
Rate limits (429), server errors (5xx) and network errors are retried up to 3 times with backoff, always with the same idempotency key, so a retry never creates a duplicate alert. Quota errors are not retried.
| Exception | When |
|---|---|
InvalidRequestError |
400, 413, 415, 422 |
AuthenticationError |
401, bad or revoked key |
PermissionDeniedError |
403 |
NotFoundError |
404 |
ConflictError |
409 |
RateLimitError |
429 after retries |
QuotaExceededError |
429, monthly quota used up |
ServerError |
5xx after retries |
NetworkError |
no response after retries |
ConfigurationError |
no API key |
Each has status, code, message and request_id. Your key is never printed: repr(client) and error text show it as pl_live_****abcd.
Links
- Website: pingloom.dev
- Node client and CLI:
npm install pingloom - License: MIT
Metadata
Release files for pingloom 0.1.1
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 |
|---|---|---|---|---|
| pingloom-0.1.1.tar.gz | 8.6 kB | Without provenance | Details for pingloom-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pingloom-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for pingloom-0.1.1-py3-none-any.whl |
Total release size: 16.3 kB
Release files / pingloom-0.1.1.tar.gz
| Download URL | pingloom-0.1.1.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe903af2aefe242345103eb10dd2486853c73aaf1fa53afbf56dd1de6037b088
|
|
BLAKE2b-256 checksum How to use checksums |
a6723d74f9ebd2940dda46dde94447ea77241f3db5440d3f6b4e6e0269f2f73b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / pingloom-0.1.1-py3-none-any.whl
| Download URL | pingloom-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a34a417561f9018f456def7605fd287a41ab3183001fb1fba061da28e622153e
|
|
BLAKE2b-256 checksum How to use checksums |
41e101ffdbc949507876b66714683b0ac8d1bee260e63e555e07099482a5f7ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for pingloom 0.1.1
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.