Skip to main content

discord-ops-alert (Python)

Python SDK for sending Discord notifications — fire-and-forget, retry, webhook/bot mode.

Mirror of the TypeScript discord-ops-alert npm package.

Install

pip install discord-ops-alert
# or
uv add discord-ops-alert

Usage

from discord_ops_alert import create_notifier

# Webhook mode
notify = create_notifier(
    mode="webhook",
    webhooks={"login": "https://discord.com/api/webhooks/ID/TOKEN"},
    enabled_in=["production"],
)
notify(topic="login", message="User logged in")  # fire-and-forget

# Bot mode
import os, json
notify = create_notifier(
    mode="bot",
    token=os.environ["DISCORD_BOT_TOKEN"],
    channels=json.loads(os.environ["CHANNEL_MAP_JSON"]),
    enabled_in=["production"],
)

# Async variant
result = await notify.async_(topic="login", message="User logged in")

Metadata

Release files for discord-ops-alert 0.1.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 discord-ops-alert 0.1.0
File Size Uploaded Provenance
discord_ops_alert-0.1.0.tar.gz 43.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for discord-ops-alert 0.1.0
File Interpreter ABI Platform
discord_ops_alert-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 58.7 kB

Release files / discord_ops_alert-0.1.0.tar.gz

Download URL discord_ops_alert-0.1.0.tar.gz
Size 43.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8cd89810de4f4283ef3a0dbc0080886c40fe5cf0b00717e8e627f499d9bde45b
BLAKE2b-256 checksum
How to use checksums
e07baee3d7929d04b1c96d35667ea2db4dd2aa83d20599edef920ffe2f268151
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.23

Release files / discord_ops_alert-0.1.0-py3-none-any.whl

Download URL discord_ops_alert-0.1.0-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8388f30f9df9921ac2d5138b78a4b957de612311c1066b29a706ab439d6cd8ba
BLAKE2b-256 checksum
How to use checksums
b28482b8acdde38e0ee2672b9a4ce702cc574a2de4ec6154cec4fd6f9990af56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.23

Security for discord-ops-alert 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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