Handles you Codes Webhook requests. Supports Discord, Slack, etc.
Project description
WebhookHandler
A lightweight Python module for sending, editing, and managing webhooks effortlessly.
Features
- Send messages to webhookds
- Edit and delete webhook messages
- Manage webhook settings (username, avatar, etc.)
- Retrieve webhook information
Installation
You can install WebhookHandler via pip:
pip install WebhookHandler
Quick Start
Sending a Webhook Message (discord used as example)
from discord_webhook import Send
webhook_url = "your_webhook_url"
Send.normal(webhook_url, "Hello, Discord Webhook!")
Sending an Embed Message (discord used as example)
Send.embed(
url=webhook_url,
title="Embed Title",
description="This is an embedded message.",
color=0xFF0000
)
Editing a Webhook Message (discord used as example)
from discord_webhook import Edit
message_id = "your_message_id"
Edit.edit_message(webhook_url, message_id, "Updated content")
Deleting a Webhook Message (discord used as example)
Edit.delete_message(webhook_url, message_id)
Managing Webhooks
Creating a Webhook (discord used as example)
Edit.create_webhook(channel_id="your_channel_id", name="New Webhook")
Retrieving Webhooks (discord used as example)
from discord_webhook import Get
Get.channel_webhook("your_channel_id")
Contributing
Contributions are welcome! Feel free to open an issue or submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Warning
DO NOT TRUST THE CODE WE USE AS EXAMPLES! READ THE DOCUMENTATION ON OUR SITE FIRST!
NOTE: The Documentation is still being worked on.
Links
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file webhookhandler-1.0.4.tar.gz.
File metadata
- Download URL: webhookhandler-1.0.4.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57c8b69402cb74e64eea70dad64f8f7caca5bab71004ee838dd519b5658ab4e3
|
|
| MD5 |
d495045c47c09f40ce6f6482f0d56b32
|
|
| BLAKE2b-256 |
d0c3e7c56597c50c86cf9b6f02f40f4bd47ca8b1af7ac6cc466f994d20cfa6a3
|
Provenance
The following attestation bundles were made for webhookhandler-1.0.4.tar.gz:
Publisher:
python-publish.yml on SyncWide-Solutions/WebhookHandler
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
webhookhandler-1.0.4.tar.gz -
Subject digest:
57c8b69402cb74e64eea70dad64f8f7caca5bab71004ee838dd519b5658ab4e3 - Sigstore transparency entry: 169851865
- Sigstore integration time:
-
Permalink:
SyncWide-Solutions/WebhookHandler@beaa15e7a4d78456e8284dd7e43a4a6e7f92ea74 -
Branch / Tag:
refs/tags/v1.0.4 - Owner: https://github.com/SyncWide-Solutions
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@beaa15e7a4d78456e8284dd7e43a4a6e7f92ea74 -
Trigger Event:
release
-
Statement type:
File details
Details for the file WebhookHandler-1.0.4-py3-none-any.whl.
File metadata
- Download URL: WebhookHandler-1.0.4-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51011a0b7abdc17c6b31ea78e219bfb36ecb625d60bd245d85eca91beba8a028
|
|
| MD5 |
111a06d800d74abaab8c7295a4958779
|
|
| BLAKE2b-256 |
f2f155d60492a011cd1a1f8ac236117a154eaa676e506018f41a55420a5a2878
|
Provenance
The following attestation bundles were made for WebhookHandler-1.0.4-py3-none-any.whl:
Publisher:
python-publish.yml on SyncWide-Solutions/WebhookHandler
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
webhookhandler-1.0.4-py3-none-any.whl -
Subject digest:
51011a0b7abdc17c6b31ea78e219bfb36ecb625d60bd245d85eca91beba8a028 - Sigstore transparency entry: 169851866
- Sigstore integration time:
-
Permalink:
SyncWide-Solutions/WebhookHandler@beaa15e7a4d78456e8284dd7e43a4a6e7f92ea74 -
Branch / Tag:
refs/tags/v1.0.4 - Owner: https://github.com/SyncWide-Solutions
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@beaa15e7a4d78456e8284dd7e43a4a6e7f92ea74 -
Trigger Event:
release
-
Statement type: