Skip to main content

nodii-notify

Python port of @nodii/notify (S08-38, LIB-EVT-21). Every service requests a notification through one function. The caller states the kind, the sender, the recipient, the tenant whose data is involved and the channels. It cannot name the payer: the payer follows from those facts (S08-2).

from nodii_notify import NODII_SENDER, NotifierConfig, UserRecipient, define_notifier

notifier = define_notifier(
    NotifierConfig(
        source_service="nodii-billing-service",
        topic_prefix="billing",
        outbox_table="billing_outbox",
        platform_tenant_id=PLATFORM_TENANT_ID,
    )
)

async with conn.transaction():
    event_ids = await notifier.request_notification(
        conn,
        kind="password_reset_staff",
        sender=NODII_SENDER,
        recipient=UserRecipient(user_id=user_id),
        scope_tenant_id=tenant_id,
        channels=["email"],
        request_id=request_id,
    )

The request is written in the caller's transaction, one outbox event per channel. A refused request raises NotifyRequestError with a code. kinds_gen.py is generated; never edit it.

uv run pytest python/notify/tests/

Metadata

Release files for nodii-notify 0.2.0

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

Source distribution (sdist)

Source distribution for nodii-notify 0.2.0
File Size Uploaded Provenance Actions
nodii_notify-0.2.0.tar.gz 15.0 kB Without provenance Details for nodii_notify-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nodii-notify 0.2.0
File Interpreter ABI Platform Actions
nodii_notify-0.2.0-py3-none-any.whl Python 3 none any Details for nodii_notify-0.2.0-py3-none-any.whl

Total release size: 25.6 kB

Release files / nodii_notify-0.2.0.tar.gz

Download URL nodii_notify-0.2.0.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d684e4d849357c54bccca8e87d3953c41b5f2027bf13d5a44fa1189b88455754
BLAKE2b-256 checksum
How to use checksums
303beeab474b33fb9cef01e293a350e48abeae7b737db3116c7b1120977b2dad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Amazon Linux","version":"2023","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / nodii_notify-0.2.0-py3-none-any.whl

Download URL nodii_notify-0.2.0-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13b6d0a31508bb9a8e2962f5f49c5fc4847960bdff70049692c75b1df140047c
BLAKE2b-256 checksum
How to use checksums
a293ecfd6491cc1cb47887614e0d97e2268dde696e891296aa0975c48c7a5078
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Amazon Linux","version":"2023","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for nodii-notify 0.2.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.

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