Skip to main content

A lightweight module to send Matplotlib figures to Discord via Webhook.

Project description

Discord Plotter

A lightweight Python module designed to send Matplotlib figures directly to a Discord channel using Webhooks.

Features

  • Lightweight: Minimal dependencies (requests, matplotlib, python-dotenv).
  • Clean: No temporary file cleanup required.
  • Secure: Webhook URLs are managed via environment variables.

Installation

uv add git+https://github.com/AliEmreSenel/discord_plotter.git

or

uv add git+ssh://git@github.com/AliEmreSenel/discord_plotter.git

Configuration

This module requires a Discord Webhook URL.

  1. In Discord, go to Server Settings > Integrations > Webhooks.
  2. Create a Webhook and copy the URL.
  3. Set the DISCORD_WEBHOOK_URL environment variable.

Option A: Using a .env file (Recommended)

Create a file named .env in the folder where you run your script:

DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/your_id/your_token

Option B: Using Terminal Export

export DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/your_id/your_token"

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_plotter-0.2.2.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

discord_plotter-0.2.2-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file discord_plotter-0.2.2.tar.gz.

File metadata

  • Download URL: discord_plotter-0.2.2.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for discord_plotter-0.2.2.tar.gz
Algorithm Hash digest
SHA256 edaf7fa96a8528a285dd4ecad185deb2e10968ba5726df99e0e74a689e8f544a
MD5 c9248c49ae96ce850cd9c158812a0629
BLAKE2b-256 c7c79d9b6f0c05d696fa4f45fe13495dc0d3947bcb3e27cc47374e6493d1672f

See more details on using hashes here.

Provenance

The following attestation bundles were made for discord_plotter-0.2.2.tar.gz:

Publisher: publish-to-pypi.yml on AliEmreSenel/discord_plotter

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

File details

Details for the file discord_plotter-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for discord_plotter-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3ed6b02ece54c8f8d55ac3c33964f0b2f45d50eb452a27e759fd6deed2b86f8f
MD5 2006810064f12c8dca6565ae62c58942
BLAKE2b-256 3fc84e2a5313cc17ad9b3566cff129edcd756806497376229d54b972f307f55a

See more details on using hashes here.

Provenance

The following attestation bundles were made for discord_plotter-0.2.2-py3-none-any.whl:

Publisher: publish-to-pypi.yml on AliEmreSenel/discord_plotter

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