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

Metadata

Release files for lupaxa-discordit 0.1.3

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.3
File Size Uploaded
lupaxa_discordit-0.1.3.tar.gz 9.7 kB Details

Built distribution (wheel)

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

Total release size: 21.5 kB

Release files / lupaxa_discordit-0.1.3.tar.gz

Download URL lupaxa_discordit-0.1.3.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
718647c61f4ed192f78d0e9329f7087341bfdf210e1cd5307fdd1f2b8c2abcf4
BLAKE2b-256 checksum
How to use checksums
05306ecdc7d2392fa73beb65b885a17937d570a8af1d170ee228d9ab0968c692
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 29, 2026.

Transparency log

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

Download URL lupaxa_discordit-0.1.3-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
480ee5d6d0ada1a1518b23cff539ec36826a346c6b3988cb6b0ce90d4546d9c9
BLAKE2b-256 checksum
How to use checksums
de80458a04958098c2c304f4f1555bd0d9fed19717dfb4bbdf6eea094a5a3f7e
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 29, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.5

2 release files

0.1.4

2 release files

This release

0.1.3 This release

2 release files

0.1.2

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