Skip to main content

Handles you Codes Webhook requests. Supports Discord, Slack, etc.

Project description

WebhookHandler

Upload Python Package Python Version

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

webhookhandler-1.0.4.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

WebhookHandler-1.0.4-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

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

Hashes for webhookhandler-1.0.4.tar.gz
Algorithm Hash digest
SHA256 57c8b69402cb74e64eea70dad64f8f7caca5bab71004ee838dd519b5658ab4e3
MD5 d495045c47c09f40ce6f6482f0d56b32
BLAKE2b-256 d0c3e7c56597c50c86cf9b6f02f40f4bd47ca8b1af7ac6cc466f994d20cfa6a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for webhookhandler-1.0.4.tar.gz:

Publisher: python-publish.yml on SyncWide-Solutions/WebhookHandler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for WebhookHandler-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 51011a0b7abdc17c6b31ea78e219bfb36ecb625d60bd245d85eca91beba8a028
MD5 111a06d800d74abaab8c7295a4958779
BLAKE2b-256 f2f155d60492a011cd1a1f8ac236117a154eaa676e506018f41a55420a5a2878

See more details on using hashes here.

Provenance

The following attestation bundles were made for WebhookHandler-1.0.4-py3-none-any.whl:

Publisher: python-publish.yml on SyncWide-Solutions/WebhookHandler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page