Skip to main content

Dihook

A lightweight Python library for sending Discord webhook messages.

Version PyPI Python License Stars

dihook makes it simple to send Discord webhook messages from any Python script — without unnecessary boilerplate.


Features

  • Send Discord webhook messages
  • Simple Python interface
  • Lightweight and easy to use
  • Minimal dependencies
  • Built for scripts, bots, and automation

Installation

From PyPI

pip install dihook

From GitHub (latest)

pip install git+https://github.com/dj-kaif/dihook.git

Quick Start

from dihook import Dihook

WEBHOOK = Dihook("YOUR_WEBHOOK_URL")

WEBHOOK.send("Hello from Dihook 🚀")
print(WEBHOOK.send("This will print a success message in your terminal."))

Roadmap

v1.2.0 (planned)

  • Discord embed support
  • More usage examples
  • Better documentation
  • Improved error handling
  • Better developer experience

Contributing

Contributions are welcome!

How to contribute

  1. Fork the repository
  2. Clone your fork
git clone https://github.com/YOUR_USERNAME/dihook.git
  1. Create a new branch
git checkout -b feature-name
  1. Make your changes
  2. Test your changes
  3. Open a pull request

Guidelines

  • Keep code clean and readable
  • Follow existing project style
  • Do not add unnecessary dependencies
  • Do not break existing features
  • Keep pull requests focused on one change

License

Distributed under the MIT License. See LICENSE for details.


Contact & Support

If Dihook saves you time, consider ⭐ starring the repo — it really helps!

Metadata

Release files for dihook 1.0.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 dihook 1.0.0
File Size Uploaded Provenance
dihook-1.0.0.tar.gz 4.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for dihook 1.0.0
File Interpreter ABI Platform
dihook-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.3 kB

Release files / dihook-1.0.0.tar.gz

Download URL dihook-1.0.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c1bfca5ecdb521cc1b08e097df59812cb03f06be692fd669b9e3751b73eced86
BLAKE2b-256 checksum
How to use checksums
30deb4e7ab5889a96b0696ba513c13b0f53fcd4c5e32655483e4e00467ed89c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / dihook-1.0.0-py3-none-any.whl

Download URL dihook-1.0.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb2eefc7a8623578219cc5326f88d1148f4fd0eecee188019f1ca44ada95ff35
BLAKE2b-256 checksum
How to use checksums
699c77f3b8ff064d8cae5765fa8a7f9a8c1db91daea97b155721aaf465c6c12c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for dihook 1.0.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.

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