Render Excalidraw JSON to PNG. Python binding for excalidraw-skill-pack.
Project description
excalidraw-render
Python binding for rendering Excalidraw JSON to PNG, part of excalidraw-skill-pack.
Install
pip install excalidraw-skill-pack-render
playwright install chromium
Python API
from excalidraw_render import render_to_png
png_bytes = render_to_png(json_str, theme="default-sketchy", scale=2, width=1920)
CLI
excalidraw-render diagram.excalidraw --output diagram.png --scale 2 --width 1920
Parity with Node binding
The Python and Node renderers share packages/shared/render_template.html and produce pixel-equivalent output at matching scale/width settings.
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 excalidraw_skill_pack_render-0.1.0.tar.gz.
File metadata
- Download URL: excalidraw_skill_pack_render-0.1.0.tar.gz
- Upload date:
- Size: 24.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22b0f4468152b5509177ff5c8172b5c1b6759f2461ca91f68c788d648781d8c6
|
|
| MD5 |
66adcd272ea1f3d9a01fbbb69bb47540
|
|
| BLAKE2b-256 |
bda86d2adbf55cdcfce94540eeac8437ee7c9eab3a05921121512160a72ee08b
|
File details
Details for the file excalidraw_skill_pack_render-0.1.0-py3-none-any.whl.
File metadata
- Download URL: excalidraw_skill_pack_render-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
184ca3c2f4dd48b6b9d1ecd2f39b1ba6f07ad30dd09883313db892668ad2dc27
|
|
| MD5 |
4f25ff050eeb47c6bb8be2c390fef7da
|
|
| BLAKE2b-256 |
13aa98f8832aae6b1f7b1b6bb50aa301ea3c84061445171d9268f9d99fe91da7
|