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.3.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.3.0
File Size Uploaded Provenance Actions
nodii_notify-0.3.0.tar.gz 15.4 kB Without provenance Details for nodii_notify-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 26.6 kB

Release files / nodii_notify-0.3.0.tar.gz

Download URL nodii_notify-0.3.0.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8244eea1ae3345880af805697ca22c024ede07cc55a6eb01187dab038f8e70fd
BLAKE2b-256 checksum
How to use checksums
a2f679630769fc358d9a9abcdf05e155d6a284a5b0c7b163bd1ff92f8578e880
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.3.0-py3-none-any.whl

Download URL nodii_notify-0.3.0-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1823ea4a1a3d1b763b5f674c401a798dc9cc3025472b65f4a649c5b02b967fd3
BLAKE2b-256 checksum
How to use checksums
a3c62a63a98538c5d17c1987230876d96a39bc2fa170af0b01437d6c174ef211
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.3.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