A lightweight client for posting messages to a Discord webhook.
Project description
Discord Poster
A lightweight Python client to post messages to a Discord webhook.
Setting up Webhooks
For information on creating Discord webhooks, see Discord's documentation here.
Features
- Simple and lightweight
- Supports optional error logging and exception raising
- Custom exception class for better error handling
- Built-in request timeout (10 seconds)
Installation
pip install discord-poster
Usage
from discord_poster import DiscordPoster
dp = DiscordPoster(webhook_url="my-webhook-url")
dp.post_to_discord(message="Hello from Discord Poster 😎")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
discord_poster-0.1.0.tar.gz
(2.4 kB
view details)
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 discord_poster-0.1.0.tar.gz.
File metadata
- Download URL: discord_poster-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.13.0 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3768689a91bb59250c8b1e580903562b041ddd8ed2856abfdaaa88476817be20
|
|
| MD5 |
4b2f3771ed3d491ec3fed3e8095d9db2
|
|
| BLAKE2b-256 |
5c5faf2d2b24f9afddebbb258b3b82c58439f0b0a91f0649af34475fbacd39f9
|
File details
Details for the file discord_poster-0.1.0-py3-none-any.whl.
File metadata
- Download URL: discord_poster-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.13.0 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eef212ad2454669575a67c702c07a1fddc92334fd17f0ed7881ef25a7880237e
|
|
| MD5 |
32c686d38eea3e0b0cf0c0067a70a08e
|
|
| BLAKE2b-256 |
01fe89f5acd8b0ad8f901792dcc5fd689e537ea373d45d55060d2a0d92648335
|