Skip to main content

Notifications Toolbox

Discordit

Send Discord messages through an incoming webhook.

Install

pip install lupaxa-discordit
discordit --help

CLI

discordit --webhook "$DISCORD_WEBHOOK_URL" --text "Hello"
discordit --profile testing --text "Hello"
discordit -p alerts --config "$HOME/work/discordit.yml" --text "Disk full"
python -m lupaxa.discordit --version

The webhook URL must use Discord's /api/webhooks/ path. --text, --embed, and --file may be combined. --validate cannot be combined with them. One of those four is required. Flags override the same fields from the selected profile.

Config

Profiles live in $HOME/.discordit.yml. Pass --config to use another file. --config requires --profile.

profiles:
  testing:
    webhook_url: https://discord.com/api/webhooks/WEBHOOK_ID/WEBHOOK_TOKEN
    username: PyBot
    avatar_url: https://example.com/avatar.png
    tts: false
    thread_name: Alerts
    allowed_mentions:
      parse: []
    timeout: 15

Each profile may set webhook_url, username, avatar_url, tts, thread_name, allowed_mentions, and timeout.

Library

from lupaxa.discordit import Discordit, load_profile

profile = load_profile("testing")
client = Discordit(
    profile.webhook_url,
    username=profile.username,
    avatar_url=profile.avatar_url,
)
client.send_message("Hello")

Development

make init
make python-install-dev
make python-check

Documentation

Site pages live in mkdocs/ and publish to https://discordit.thelupaxaproject.org/.

make init
make python-install-dev
make mkdocs-serve
The Lupaxa Project Footer

Release files for lupaxa-discordit 0.1.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 lupaxa-discordit 0.1.2
File Size Uploaded
lupaxa_discordit-0.1.2.tar.gz 9.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lupaxa-discordit 0.1.2
File Interpreter ABI Platform
lupaxa_discordit-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 21.5 kB

Release files / lupaxa_discordit-0.1.2.tar.gz

Download URL lupaxa_discordit-0.1.2.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
152550492552ab08870a3db3ad65ffff840eaa237006077d06a8fa293f9e5a5a
BLAKE2b-256 checksum
How to use checksums
a8f0640f735b4b5c18eea00c9d57392e1c0d3110254317e49c777e02cc5dd1ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / lupaxa_discordit-0.1.2-py3-none-any.whl

Download URL lupaxa_discordit-0.1.2-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc6158962b2ef372d8c9bb027055ed4d246d2b7b2f147b9f5fa0882f5f62f301
BLAKE2b-256 checksum
How to use checksums
4538d58553639eecd7d243dd3ba41acf71a25dd842992c48b2fc0e16c964881e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

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