# pydn/ComfyUI-to-Python-Extension

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

Repository: https://github.com/pydn/ComfyUI-to-Python-Extension
Canonical: https://ross.abutalabs.com/products/comfyui-to-python-extension
Language: Python
License: MIT
License Family: permissive
Topics: comfyui, image-generation, stable-diffusion, ai-art, generative-art, pytorch
Last push: 2026-05-10T21:24:03+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 81, release rhythm 77, longevity 80
- inputs: {"age_days": 1130, "days_push": 115, "days_rel": 157, "gap_med": 1.0, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2375, forks 214 (observed 2026-08-28T04:06:41.943016+00:00)

## What it is
A ComfyUI extension and CLI tool that translates ComfyUI node-graph workflows into executable Python scripts. It lets users export workflows via a 'Save As Script' UI option or convert saved API-format workflow files from the command line.

## Use cases
- convert comfyui workflow to python code
- run stable diffusion generation pipeline as a script
- automate image generation without the comfyui ui
- export comfyui workflow as python script
- batch generate ai art programmatically
- turn node graph into repeatable python pipeline

## When to choose
- you build workflows visually in ComfyUI but want to run them headless or in code
- you need repeatable, scriptable image generation pipelines
- you want to experiment with or modify generated workflows in Python

## When to avoid
- you only use ComfyUI interactively and never need scripting
- you don't have a ComfyUI installation available, since generated scripts depend on it
- you need a general-purpose workflow engine unrelated to ComfyUI

## Facets
- artifact type: plugin
- maturity: active
- function: developer-tools, cli, image-processing
- domain: artificial-intelligence, image-processing, developer-tools
- platform: python, cross-platform, cli
- tags: comfyui, stable-diffusion, workflow-export, pytorch, ai-art, code-transpiler, code-generation, automation

## Member repositories
- pydn/ComfyUI-to-Python-Extension (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:41.943016+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:35:03.872372+00:00, confidence not recorded.
  - readme: https://github.com/pydn/ComfyUI-to-Python-Extension (fetched 2026-08-28T04:06:41.943016+00:00, sha eebf3ebbf624)
- Data as of 2026-08-30T08:39:29.467469+00:00.
