pydn/ComfyUI-to-Python-Extension
A powerful tool that translates ComfyUI workflows into executable Python code.
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.
Stars
2,282
Forks
201
Language
Python
License
MIT
Category
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.
Higher-rated alternatives
Comfy-Org/comfy-cli
Command Line Interface for Managing ComfyUI
runpod-workers/worker-comfyui
ComfyUI as a serverless API on RunPod
YanWenKun/ComfyUI-Docker
🐳Dockerfile for 🎨ComfyUI. | 容器镜像与启动脚本
Comfy-Org/ComfyUI
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
Acly/comfyui-tooling-nodes
Nodes for using ComfyUI as a backend for external tools. Send and receive images directly...