skillfed

dhooks-lite

A wrapper for sending messages to Discord webhooks.

dhooks-lite v2.0.1 256.8K downloads/30d#8,457 on PyPI0
License unclear Active released

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-lite

uv

uv add dhooks-lite

poetry

poetry add dhooks-lite

Installing 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

Intended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Communications :: ChatTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules

Tags

discord webhook message senderpost to discord channeldiscord embed librarydiscord webhook pythondiscord message automationsend discord notificationsdiscord api wrapper
discord-integrationwebhooksnotifications

More Libraries packages