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.
- In Discord, go to Server Settings > Integrations > Webhooks.
- Create a Webhook and copy the URL.
- Set the
DISCORD_WEBHOOK_URLenvironment 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
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
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_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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edaf7fa96a8528a285dd4ecad185deb2e10968ba5726df99e0e74a689e8f544a
|
|
| MD5 |
c9248c49ae96ce850cd9c158812a0629
|
|
| BLAKE2b-256 |
c7c79d9b6f0c05d696fa4f45fe13495dc0d3947bcb3e27cc47374e6493d1672f
|
Provenance
The following attestation bundles were made for discord_plotter-0.2.2.tar.gz:
Publisher:
publish-to-pypi.yml on AliEmreSenel/discord_plotter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
discord_plotter-0.2.2.tar.gz -
Subject digest:
edaf7fa96a8528a285dd4ecad185deb2e10968ba5726df99e0e74a689e8f544a - Sigstore transparency entry: 953518031
- Sigstore integration time:
-
Permalink:
AliEmreSenel/discord_plotter@2d30973c4d86d2492a507de3d570e1b937eebdce -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/AliEmreSenel
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@2d30973c4d86d2492a507de3d570e1b937eebdce -
Trigger Event:
push
-
Statement type:
File details
Details for the file discord_plotter-0.2.2-py3-none-any.whl.
File metadata
- Download URL: discord_plotter-0.2.2-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ed6b02ece54c8f8d55ac3c33964f0b2f45d50eb452a27e759fd6deed2b86f8f
|
|
| MD5 |
2006810064f12c8dca6565ae62c58942
|
|
| BLAKE2b-256 |
3fc84e2a5313cc17ad9b3566cff129edcd756806497376229d54b972f307f55a
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
discord_plotter-0.2.2-py3-none-any.whl -
Subject digest:
3ed6b02ece54c8f8d55ac3c33964f0b2f45d50eb452a27e759fd6deed2b86f8f - Sigstore transparency entry: 953518034
- Sigstore integration time:
-
Permalink:
AliEmreSenel/discord_plotter@2d30973c4d86d2492a507de3d570e1b937eebdce -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/AliEmreSenel
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@2d30973c4d86d2492a507de3d570e1b937eebdce -
Trigger Event:
push
-
Statement type: