Skip to main content

Make webhooks on Discord simpler for all!

Project description

Discoweb

A PyPi package that makes sending messages on Discord webhooks in Python easier and faster!

What are Discord webhooks?

Discord webhooks are a feature in Discord that simplifies sending messages in a server without needing a bot, although, webhooks only send messages in the channel they were created in!

(also dont worry this package has asynchronous support)

Installation

You can install this package via pip:

pip install discoweb

Usage

Basic text messages

First, create a webhook object using the Webhook() object:

import discoweb

webhook = discoweb.Webhook("WEBHOOK_URL")

Then, to send a message, create a message object and then send the message using the webhook:

import discoweb

webhook = discoweb.Webhook("WEBHOOK_URL")
message = discoweb.Message("funnybone")

webhook.send(message, username="Webhook")
# This will make the webhook send the message "funnybone" with the name "Webhook"!

Rich Embeds, Files & Mention Control

Discoweb also supports Rich Embeds and files!

import discoweb
webhook = discoweb.Webhook("WEBHOOK_URL")

# Beautiful embeds!
embed = (
    embedplus = discoweb.EmbedPlus(title='Rich Embed Test', description='This is a test for rich embeds!',
    image_url='IMAGE_URL', thumbnail_url='THUMBNAIL_URL')
    embedplus.setfooter(text='Discoweb Example', icon_url='ICON_URL')
    embedplus.setauthor(author='Discoweb', icon_url='ICON_URL', url='https://example.com')
)

# Local files (ex. images)!
catimage = discoweb.File('cat.png')
dogimage = discoweb.File('dog.jpeg')

# Mention control!
allowment = discoweb.AllowedMentions(
    everyone=False,
    users=False,
    roles=False
)

# And finally.. sending the message!
webhook.send(
    content='Hey guys, come look at this!',
    embeds=[embed],
    files=[catimage, dogimage],
    allowed_mentions=allowment
)

Native Asynchronous Support!

Discoweb has asynchronous support too via aiohttp!

import discoweb

async def main():
    # Create a webhook object!
    webhook = discoweb.AsyncHook('WEBHOOK_URL')
    
    # Send a message with it!
    await webhook.send(Message('Hello world!'))

    # Then close it!
    await webhook.close()

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

discoweb-0.1.3.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

discoweb-0.1.3-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file discoweb-0.1.3.tar.gz.

File metadata

  • Download URL: discoweb-0.1.3.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.17.0 {"ci":null,"cpu":"AMD64","implementation":{"name":"CPython","version":"3.14.5"},"installer":{"name":"hatch","version":"1.17.0"},"openssl_version":"OpenSSL 3.0.20 7 Apr 2026","python":"3.14.5","system":{"name":"Windows","release":"10"}} HTTPX2/2.5.0

File hashes

Hashes for discoweb-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0fb9bfd6e74d423745ff5db4792854c7f68a80c1a1bbf0b0b97f333cb6f0ff34
MD5 f837265765c45a6b8c210d48e7e74fa2
BLAKE2b-256 e69f40c8abc0899358aadbc8e9bf222b99bf8f7f5fbb5ef9cd2245f75e0f4b90

See more details on using hashes here.

File details

Details for the file discoweb-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: discoweb-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.17.0 {"ci":null,"cpu":"AMD64","implementation":{"name":"CPython","version":"3.14.5"},"installer":{"name":"hatch","version":"1.17.0"},"openssl_version":"OpenSSL 3.0.20 7 Apr 2026","python":"3.14.5","system":{"name":"Windows","release":"10"}} HTTPX2/2.5.0

File hashes

Hashes for discoweb-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e579b677d85ca911bb4e5285b95f79372844f04f6fdea06146d75c1e224144fb
MD5 ee5bae6000ec22158d0b78757fe37549
BLAKE2b-256 ca8736c06b8e2e52999cccef5a48e57fd2abffda8bbdc1e2b870ce2f5706b920

See more details on using hashes here.

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