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.4.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.4.0
File Size Uploaded Provenance Actions
nodii_notify-0.4.0.tar.gz 19.0 kB Without provenance Details for nodii_notify-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 33.3 kB

Release files / nodii_notify-0.4.0.tar.gz

Download URL nodii_notify-0.4.0.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e6a56a111a9944b3e79b0e78c4168f3fb160de3a397601a1094947b0948f1b44
BLAKE2b-256 checksum
How to use checksums
5b6bdd4bd28476d5fb368a69e62ae0bc30c8bdc1e97d2189897287c019eacab9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.4.0-py3-none-any.whl

Download URL nodii_notify-0.4.0-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ebb3f6805714b7bba85f9c762da4e161842df91280aecb0e8767ab5e70baa3f
BLAKE2b-256 checksum
How to use checksums
6b2d5d4d0867e85593eb99025c45d0da5e83e95add4879ddad81c11f8ecfd67b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.4.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