Skip to main content

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)

Uploaded Source

Built Distribution

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

dismessage-0.4.0-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

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

Hashes for dismessage-0.4.0.tar.gz
Algorithm Hash digest
SHA256 27df80cd71775f4eaf806e0028e8044d53efcd0952bee90b9185c13db9ca0180
MD5 7c482d106d80e44d38e8ff7bf1d9d542
BLAKE2b-256 558f4bd7e6118f0a33bfd5fea1052648f2af146dd494ee6de445f5adf1b69141

See more details on using hashes here.

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

Hashes for dismessage-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71290d47a56d3003307822b81bdb173558761bc4fe7eb9040ea185f4f25d448d
MD5 9ffa6a7303f7ad3473f2eda82ef230a9
BLAKE2b-256 f6829046254256b566afb761e9b5a0262225a07cae4faf88b61100feb7b45e00

See more details on using hashes here.

Release history Release notifications | RSS feed

0.6.1

2 files

0.6.0

2 files

0.5.2

2 files

0.5.0

2 files

0.4.8

2 files

0.4.7

2 files

0.4.6

2 files

0.4.2

2 files

This release

0.4.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page