#7878th of 89 in Image and video

comfyui-to-python-extension

Exports ComfyUI node workflows as standalone runnable Python scripts

Stars
2.4k
License
MIT
Last commit
Apr 2026
Last release
Mar 2026
Language
Python
Stars, last 29 weeks+101
25 Apr 2026: 2,293 stars2 May 2026: 2,300 stars9 May 2026: 2,305 stars16 May 2026: 2,306 stars23 May 2026: 2,315 stars30 May 2026: 2,319 stars6 Jun 2026: 2,327 stars13 Jun 2026: 2,332 stars20 Jun 2026: 2,338 stars27 Jun 2026: 2,342 stars4 Jul 2026: 2,345 stars11 Jul 2026: 2,349 stars18 Jul 2026: 2,352 stars25 Jul 2026: 2,353 stars1 Aug 2026: 2,358 stars8 Aug 2026: 2,359 stars15 Aug 2026: 2,365 stars22 Aug 2026: 2,365 stars29 Aug 2026: 2,368 stars5 Sept 2026: 2,370 stars12 Sept 2026: 2,370 stars19 Sept 2026: 2,372 stars26 Sept 2026: 2,374 stars3 Oct 2026: 2,377 stars10 Oct 2026: 2,378 stars17 Oct 2026: 2,384 stars24 Oct 2026: 2,387 stars31 Oct 2026: 2,389 stars7 Nov 2026: 2,393 stars14 Nov 2026: 2,394 stars

2,293 on 25 Apr 20262,394 on 14 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

A ComfyUI custom node that adds File -> Save As Script to the web UI, downloading the current workflow as a .py file. A CLI (python -m comfyui_to_python) also converts workflows saved in API-format JSON, with a configurable queue size. Generated scripts still need a working ComfyUI install and accept ComfyUI memory flags such as --lowvram and --cpu.

Who it is for: ComfyUI users who want to run or automate workflows as Python scripts

Strengths

  • Adds Save As Script to the ComfyUI File menu, plus a CLI for API-format JSON
  • Generated scripts accept ComfyUI flags like --highvram, --lowvram, --cpu and --disable-smart-memory
  • Images saved by UI-exported scripts reopen in ComfyUI with the original workflow metadata
  • Cleans up models and cache after each run; optional unload via COMFYUI_TOPYTHON_UNLOAD_MODELS=1

Weaknesses

  • Generated scripts need a full ComfyUI runtime, including torch, to run
  • Requires Python 3.12 or newer, installed into the interpreter that launches ComfyUI
  • Workflow inputs are not exposed as command-line arguments in the exported script
  • Scripts are single-shot runners with no prompt or result caching across repeated calls

What it needs

  • GPU optional
  • Needs ComfyUI, Python 3.12+, uv, torch

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Also in Image and video

See all 89
Also in Image and video
RankProjectScore
1frigateLocal NVR with realtime object detection for IP cameras37.6k starsMIT93 out of 100
2MoneyPrinterTurboGenerates short videos from a topic, with script, footage, voiceover and subtitles144.3k starsMIT88 out of 100
3toonflow-appInfinite-canvas tool for AI short drama and comic video production22.1k starsMIT88 out of 100
#4InvokeAIWeb UI for diffusion image generation with inpainting canvas and node workflows29.1k starsApache-2.087 out of 100
#5ComfyUINode-graph editor for running diffusion image, video, audio and 3D workflows147.4k starsGPL-3.085 out of 100