DisMessage
Pixel-perfect Discord message & friend request renderer.
Install
pip install dismessage[all]
python -m playwright install chromium
Usage
from dismessage import Author, Message, render_png
from datetime import datetime, timezone
msg = Message(
author=Author(
id="123", name="User",
avatar_url="https://cdn.discordapp.com/avatars/123/abc.webp?size=80",
),
content="hello **world**",
timestamp=datetime.now(timezone.utc),
)
render_png([msg], "out.png")
See GitHub for full docs.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dismessage-0.4.0.tar.gz
(1.2 MB
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 dismessage-0.4.0.tar.gz.
File metadata
- Download URL: dismessage-0.4.0.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27df80cd71775f4eaf806e0028e8044d53efcd0952bee90b9185c13db9ca0180
|
|
| MD5 |
7c482d106d80e44d38e8ff7bf1d9d542
|
|
| BLAKE2b-256 |
558f4bd7e6118f0a33bfd5fea1052648f2af146dd494ee6de445f5adf1b69141
|
File details
Details for the file dismessage-0.4.0-py3-none-any.whl.
File metadata
- Download URL: dismessage-0.4.0-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71290d47a56d3003307822b81bdb173558761bc4fe7eb9040ea185f4f25d448d
|
|
| MD5 |
9ffa6a7303f7ad3473f2eda82ef230a9
|
|
| BLAKE2b-256 |
f6829046254256b566afb761e9b5a0262225a07cae4faf88b61100feb7b45e00
|