Skip to main content

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)

Batch (reuse one browser)

Launching Chromium is the dominant cost of a render; reuse it across diagrams.

from excalidraw_render import BatchItem, Renderer, render_many

# One-shot batch — launches one browser, renders all, closes it:
pngs = render_many([
    BatchItem(json=json_a, theme="dark", scale=2),
    BatchItem(json=json_b, theme="notion"),
])

# Or drive the browser yourself for long-lived processes / servers:
with Renderer() as renderer:
    png = renderer.render(json_str, theme="default-sketchy", scale=2, width=1920)

render_to_png is a convenience wrapper that launches and closes a browser for a single render — output is identical to Renderer.render.

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.

Metadata

Release files for excalidraw-skill-pack-render 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for excalidraw-skill-pack-render 0.2.0
File Size Uploaded Provenance
excalidraw_skill_pack_render-0.2.0.tar.gz 26.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for excalidraw-skill-pack-render 0.2.0
File Interpreter ABI Platform
excalidraw_skill_pack_render-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 34.1 kB

Release files / excalidraw_skill_pack_render-0.2.0.tar.gz

Download URL excalidraw_skill_pack_render-0.2.0.tar.gz
Size 26.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b8b2cc136724485078bd3d6d252839d830b81fd9897a538b6658558f17e18299
BLAKE2b-256 checksum
How to use checksums
d3d599a26e6be535dce0fc5777eeced6f2708c1c4d15b48f7172bc43cb84956c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","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}

Release files / excalidraw_skill_pack_render-0.2.0-py3-none-any.whl

Download URL excalidraw_skill_pack_render-0.2.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4bf5a67656453b4fad45c12f51f6c8801e9412d3e4612b3bbdd1730ea6a34183
BLAKE2b-256 checksum
How to use checksums
e6c99045f22dc709b7f76696a48587d831c0003f0188d3eb5304adc2c4c3f078
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","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}

Security for excalidraw-skill-pack-render 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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