dhooks-lite
A wrapper for sending messages to Discord webhooks.
What it is and what it does
dhooks-lite is a Python wrapper for Discord webhooks that handles the mechanics of posting messages and rich embeds to Discord channels. It aims to stay close to Discord's official webhook API while adding conveniences like automatic request retries, sensible timeouts, and logging. The library is synchronous only and depends on requests for HTTP communication.
You use it by creating a Webhook object with your Discord webhook URL, then calling execute() to send messages. It supports custom usernames and avatars, embeds with fields and images, and can retrieve HTTP status codes and headers for rate-limit handling. The package is fully tested and documented, with support for Python 3.8 through 3.14.
Use it for:
- Send alerts or notifications from a Python application to a Discord channel without managing raw HTTP requests.
- Post formatted reports or logs with embeds (title, description, fields, images, footer) to Discord for team visibility.
- Implement a Discord bot or integration that posts messages on events or schedules without async complexity.
- Retrieve HTTP response details (status, headers) from Discord to implement custom rate-limit handling.
- Automate status updates or build notifications to a Discord channel from CI/CD pipelines or monitoring systems.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Sends messages and embeds to Discord channels via webhooks, with automatic retries, timeouts, and support for custom avatars and rich formatting.
Yes, if you need a straightforward, low-friction way to post messages to Discord webhooks. The package is actively maintained, has no known vulnerabilities, and works with current Python versions. The main caveat is that the license is unclear—verify it matches your project's requirements before committing to it.
Install
dhooks-lite on PyPI
pip
pip install dhooks-liteuv
uv add dhooks-litepoetry
poetry add dhooks-liteInstalling dhooks-lite
Before you install
Low friction: pure Python wheel with a single runtime dependency (requests). Active maintenance with a release in the last 20 days and support for modern Python versions (3.8–3.14).
License in practice
License status is unclear—no SPDX identifier or raw license text is recorded. Verify the actual license before use in proprietary or copyleft-sensitive projects.
Quickstart
pip install dhooks-lite
from dhooks_lite import Webhook
hook = Webhook('https://discord.com/api/webhooks/YOUR_WEBHOOK_URL')
hook.execute('Hello, World!')
Verify before relying
- Whether the unclear license is MIT, Apache, GPL, or another permissive/restrictive license—check the repository directly.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — requests |
| Maintenance | actively maintained — 20 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 256,777/month — #8,457 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: dhooks_lite-2.0.1-py3-none-any.whl
Keywords: discord, webhooks
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
discord-webhookSend messages to Discord channels via webhooks,…
permissive · top 5,000 on PyPI
pymsteamsSends formatted messages to Microsoft Teams…
permissive · top 5,000 on PyPI
aa-fleetpingsaa-fleetpings is a Django plugin for Alliance…
copyleft · top 15,000 on PyPI
standardwebhooksProvides webhook payload verification and…
permissive · top 5,000 on PyPI
slackwebSends messages to Slack channels via incoming…
permissive · top 15,000 on PyPI
django-signal-webhooksAdds webhook support to Django models by…
permissive · top 15,000 on PyPI
cdk-events-notifyAn AWS CDK Construct Library that automatically…
permissive · top 15,000 on PyPI
pywaPyWa is a fully-typed Python framework for…
permissive · top 15,000 on PyPI
postmarkerPostmarker is a Python client library for the…
permissive · top 5,000 on PyPI
pypresencePypresence is a Python client for Discord Rich…
permissive · top 15,000 on PyPI