Skip to main content

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


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)

Uploaded Source

Built Distribution

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

discord_poster-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

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

Hashes for discord_poster-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3768689a91bb59250c8b1e580903562b041ddd8ed2856abfdaaa88476817be20
MD5 4b2f3771ed3d491ec3fed3e8095d9db2
BLAKE2b-256 5c5faf2d2b24f9afddebbb258b3b82c58439f0b0a91f0649af34475fbacd39f9

See more details on using hashes here.

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

Hashes for discord_poster-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eef212ad2454669575a67c702c07a1fddc92334fd17f0ed7881ef25a7880237e
MD5 32c686d38eea3e0b0cf0c0067a70a08e
BLAKE2b-256 01fe89f5acd8b0ad8f901792dcc5fd689e537ea373d45d55060d2a0d92648335

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