pingloom (Python)
Python client for the PingLoom notification API. Standard library only, Python 3.9+.
Server-side only: the API key (pl_live_... or pl_test_...) must never go into browser or mobile code.
pip install pingloom
export PINGLOOM_API_KEY=pl_test_...
from pingloom import PingLoom
pl = PingLoom() # reads PINGLOOM_API_KEY; talks to https://api.pingloom.dev (override with PINGLOOM_BASE_URL)
event_id = pl.send(
"Backup finished", body="42 GB in 3 min", channel="ops", priority="high", idempotency_key="backup-2026-10-30"
)
print(pl.status(event_id)["status"]) # provider_accepted means FCM accepted it, not that a phone got it
send(title, body=None, channel=None, priority=None, data=None, action_url=None, idempotency_key=None) returns the event ID. status(event_id) needs the events:read scope.
Errors and retries
Every API error is a typed exception carrying status, code, message, request_id and details:
| Exception | When |
|---|---|
InvalidRequestError |
400, 413, 415, 422 |
AuthenticationError |
401 |
PermissionDeniedError |
403 |
NotFoundError |
404 |
ConflictError |
409 (IDEMPOTENCY_CONFLICT, PROJECT_ARCHIVED) |
RateLimitError |
429 RATE_LIMITED, after retries |
QuotaExceededError |
429 QUOTA_EXCEEDED, never retried |
ServerError |
5xx, after retries |
NetworkError |
no response, after retries |
ConfigurationError |
missing key or base URL |
429 RATE_LIMITED, 5xx and network errors are retried (default 3 times) with exponential backoff, or Retry-After when sent. Retries reuse the same Idempotency-Key, so they cannot create duplicates. When you do not pass idempotency_key, a random one is generated per call. Pass your own, derived from the business event, to make repeated calls of your own safe too.
The key is never logged: repr(client) and error text show pl_live_****abcd.
Develop
pip install pytest
python -m pytest
Metadata
Release files for pingloom 0.1.0
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.0.tar.gz | 8.0 kB | Without provenance | Details for pingloom-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pingloom-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pingloom-0.1.0-py3-none-any.whl |
Total release size: 15.2 kB
Release files / pingloom-0.1.0.tar.gz
| Download URL | pingloom-0.1.0.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ebd64e80747738119acc6d607f15cafd66cce5acbc03c6a0ce602cc7e3c77885
|
|
BLAKE2b-256 checksum How to use checksums |
2b1c107a2d735d7b014e5f0cedaf564dcc77cee6379d0cbb7d16a81e6089f5be
|
| 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.0-py3-none-any.whl
| Download URL | pingloom-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
92d976775f1c01c8dfc72f15338e4aadb4b7b8aaaeebc12220bad243b6aa4e3b
|
|
BLAKE2b-256 checksum How to use checksums |
4c7a59a56c1d7de6c322be5a35327e8f47bd58bfce39b9cfc7f6876a97a85e80
|
| 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.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.