pydn/ComfyUI-to-Python-Extension

A powerful tool that translates ComfyUI workflows into executable Python code.

47
/ 100
Emerging

Exports workflows through both a Web UI extension (`Save As Script`) and a standalone CLI tool, converting ComfyUI's API-format JSON into self-contained Python scripts that reuse ComfyUI's runtime and memory management flags. Generated scripts are single-shot executables that automatically clean up models and can be reimported back into ComfyUI with preserved workflow metadata, supporting Python 3.12+ with `COMFYUI_PATH` environment variable for flexible installation outside the ComfyUI directory structure.

2,282 stars. No commits in the last 6 months.

Stale 6m No Package No Dependents
Maintenance 2 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 19 / 25

How are scores calculated?

Stars

2,282

Forks

201

Language

Python

License

MIT

Last pushed

Sep 26, 2025

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/diffusion/pydn/ComfyUI-to-Python-Extension"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.