notices
One small interface for notifications and reminders over many channels: send, schedule, update and withdraw a notice, and read back what the person did (Done, Snooze). No dependencies in the library; each channel is a plugin.
pip install notices
notices send "Kettle is on" --channel macos # a banner on this Mac, no setup
NTFY_TOPIC=my-secret-topic notices send "Back up the server" --at 2h --reminder
from notices import Notice, send, retract, poll
send(Notice.reminder("call-bank", "Call the bank", at="2026-12-08T09:30", due="2026-12-08T17:00"))
send(Notice.reminder("call-bank", "Call the bank", at="2026-12-08T11:00")) # same id: every copy moves
for event in poll(): # taps on Done / Snooze, completed Apple Reminders, ...
print(event.type, event.subject, event.data) # subject: the notice id
retract("call-bank") # withdraw every copy, everywhere
What it does
A Notice is what to tell someone and when: id, title, description, at (when it should reach them), due (a deadline), urgency (min … urgent), kind, project and tags (for routing), url, actions (Done, Snooze, Drop, Open), and reveal (whether a public relay may show the title).
A Notifier sends it to the channels the routing rules pick, and keeps a ledger of the copies:
- Idempotent. Sending the same notice again does nothing. Sending a changed one (same
id) updates every copy in place where the channel can, and otherwise withdraws and re-sends. - Scheduled where the channel can hold it, and held back otherwise:
notices tick(run it every minute) sends what is due. - Withdrawn everywhere with
retract(id). - Two-way. Buttons publish to a private reply topic;
poll()returns what the person did as events. Channels with their own state (Apple Reminders) are read back directly. - Honest. Every receipt says what was dropped (a channel without buttons, a public relay that only gets "a reminder is due"), and a failed channel is a
failedreceipt, not a crash.
Channels
| Channel | Plugin | Schedule | Update | Withdraw | Buttons | Reads back | Setup |
|---|---|---|---|---|---|---|---|
| ntfy (phone push) | ntfy |
up to 3 days | yes | yes (see note) | up to 3 | via the reply topic | a topic name |
| Apple Reminders | apple_reminders |
yes (the device fires) | yes | yes | the checkbox | completion | one macOS permission |
| Apple Calendar | apple_calendar |
yes | yes | yes | no | no | one macOS permission |
| macOS notification | macos |
no (held back) | no | no | no | no | none |
| Slack | slack |
up to 120 days | yes | yes | yes | via the reply topic | a bot token |
| Google Calendar | google_calendar |
yes | yes | yes | no | deletion | an OAuth client |
notices channels shows what is configured and whether each channel is set up. On ntfy.sh, a scheduled message that was cancelled may still arrive; set schedule = "tick" on that channel to have notices tick send it at the time instead.
Settings
One TOML file, ~/.local/share/notices/config.toml (or $NOTICES_HOME/config.toml). Every part is optional.
default = ["phone"]
[channels.phone]
plugin = "ntfy"
topic = "keychain:my-ntfy-topic" # env:NAME, keychain:SERVICE, file:PATH, or the value itself
[channels.todo]
plugin = "apple_reminders"
list = "Inbox"
[inbox] # where buttons report back; keep this topic secret
topic = "keychain:my-notices-inbox"
[[routes]] # first match wins; continue = true also tries the next
match = { kind = "errand" }
channels = ["todo"]
continue = true
[[routes]]
match = { urgency = ["high", "urgent"] }
channels = ["phone"]
[[routes]]
match = { project = "client-*" }
channels = ["slack"]
during = "work"
[intervals.work]
times = ["09:00-18:00"]
weekdays = ["mon", "tue", "wed", "thu", "fri"]
notices route --kind errand --urgency high shows which channels a notice would reach, without sending.
Command line
notices send TITLE [--at 10m|ISO] [--due ...] [--reminder] [--channel a,b] [--urgency high] [--kind ...] [--dry-run]
notices retract ID [--reason done|cancel]
notices poll # new events, as JSON
notices tick # send what is due; schedule it every minute
notices status ID # a notice and its copies
notices channels # configured channels, capabilities, setup check
Where your data goes
- ntfy.sh is a public relay: anyone who knows a topic name can read it.
noticessends a public relay only "A reminder is due" (with Done / Snooze buttons) unless you passreveal. Use a long random topic, or run your own ntfy server and setexposure = "private"on that channel. - The reply topic acts as a password for the buttons, and it appears inside the button links, so it travels with every push. Make it different from the push topic. A link only works for the notice it was made for.
- Slack and Google Calendar receive the full title and text (they are private to your account); Apple Reminders and Calendar keep it on your devices and in iCloud.
- The ledger (
~/.local/share/notices/) keeps what was sent, so it can be updated or withdrawn; finished notices are pruned after 30 days. - The software is provided as is (MIT), with no guarantee about any service's handling of your data.
Writing a channel
Subclass notices.Channel, declare capabilities, implement send (and update, retract, poll if the service can), and test it with notices.testing.ChannelContract. Register it in your package:
[project.entry-points."notices.channels"]
telegram = "notices_telegram:TelegramChannel"
The design and its reasons are in docs/adr/0001-one-facade-for-notices.md; the research behind it is in docs/research/.
Metadata
Release files for notices 0.0.3
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 |
|---|---|---|---|---|
| notices-0.0.3.tar.gz | 97.3 kB | Without provenance | Details for notices-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| notices-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for notices-0.0.3-py3-none-any.whl |
Total release size: 160.3 kB
Release files / notices-0.0.3.tar.gz
| Download URL | notices-0.0.3.tar.gz |
|---|---|
| Size | 97.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76d285cc585d4bdbc5d23a626594afec3d6d6f067fdd3b55183b426764ba6424
|
|
BLAKE2b-256 checksum How to use checksums |
64b418a0b8bb98c19a9cbc637295fb596982456fa2a43db789c6a64ad8bc6dfe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.13 {"installer":{"name":"uv","version":"0.13.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / notices-0.0.3-py3-none-any.whl
| Download URL | notices-0.0.3-py3-none-any.whl |
|---|---|
| Size | 62.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21f9cee146f9596cee3148fe8d602ba4baa484d73f50a651f03c0a17232d1736
|
|
BLAKE2b-256 checksum How to use checksums |
7265ea5f8a427c0327db273c2a49615f606dd61e23ee789d402b15919bef27d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.13 {"installer":{"name":"uv","version":"0.13.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for notices 0.0.3
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.