Skip to main content

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 failed receipt, 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. notices sends a public relay only "A reminder is due" (with Done / Snooze buttons) unless you pass reveal. Use a long random topic, or run your own ntfy server and set exposure = "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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for notices 0.0.2
File Size Uploaded Provenance Actions
notices-0.0.2.tar.gz 94.9 kB Without provenance Details for notices-0.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 155.6 kB

Release files / notices-0.0.2.tar.gz

Download URL notices-0.0.2.tar.gz
Size 94.9 kB
Tags Source
SHA-256 checksum
How to use checksums
12209191fbeb1a45a12d68487fa8c1acf8094065cacd0ef7fe57acb6241121d9
BLAKE2b-256 checksum
How to use checksums
779e1b808f1a0738dafe39fcc2353d2f1bf6f8f53710955927b03bdb5f6fe4ec
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.2-py3-none-any.whl

Download URL notices-0.0.2-py3-none-any.whl
Size 60.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a70d47caea1d1a6c717dc3b1addacc374a94eb5c28cc2aef250a772d9cd4f1f8
BLAKE2b-256 checksum
How to use checksums
b7d9642555150f6f6f4d111a0fa03bf0007a0fb6086b6b6a36a3902c05b6d28e
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.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.

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.

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