ComfyUI Extension
2.3k 2026-04-18

pydn/ComfyUI-to-Python-Extension

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

Core Features

Translate ComfyUI visual workflows into executable Python code.
Supports export directly from ComfyUI UI via 'Save As Script'.
Offers a Command Line Interface (CLI) for converting saved API-format workflows.
Facilitates automation, experimentation, and repeatable AI art generation.

Quick Start

cd /path/to/ComfyUI/custom_nodes && git clone https://github.com/pydn/ComfyUI-to-Python-Extension.git

Detailed Introduction

ComfyUI-to-Python-Extension is a powerful and essential tool designed to bridge the gap between intuitive visual node-based workflows in ComfyUI and the flexibility of executable Python code. It empowers users to effortlessly transform their intricate ComfyUI graphs into runnable Python scripts, thereby unlocking new possibilities for seamless automation, advanced programmatic experimentation, and consistent, highly repeatable generation of AI art. This project offers dual functionality, supporting direct workflow export from the ComfyUI Web UI via a 'Save As Script' option, as well as command-line conversion of saved API-format workflows. By providing this capability, it significantly enhances the productivity and creative control for AI artists, researchers, and developers looking to integrate ComfyUI's power into their broader Python-based projects.

OSS Alternative

Explore the best open source alternatives to commercial software.

© 2026 OSS Alternative. hotgithub.com - All rights reserved.